* commit 'adb0e941c329a4778ade6dd0a326274472992f54': avpacket: Mark src pointer as constant See 5bb3f8825584a319b25b430e4ece2fa5b2b47ff9
Unified · Split
| @@ -4452,7 +4452,7 @@ AVPacket *av_packet_alloc(void); · 4451 unmodified lines | |||
| 4452 | * @see av_packet_alloc | 4452 | * @see av_packet_alloc |
| 4453 | * @see av_packet_ref | 4453 | * @see av_packet_ref |
| 4454 | */ | 4454 | */ |
| 4455 | AVPacket *av_packet_clone(AVPacket *src); | 4455 | AVPacket *av_packet_clone(const AVPacket *src); |
| 4456 | 4456 | ||
| 4457 | /** | 4457 | /** |
| 4458 | * Free the packet, if the packet is reference counted, it will be | 4458 | * Free the packet, if the packet is reference counted, it will be |
| @@ -614,7 +614,7 @@ fail: · 613 unmodified lines | |||
| 614 | return ret; | 614 | return ret; |
| 615 | } | 615 | } |
| 616 | 616 | ||
| 617 | AVPacket *av_packet_clone(AVPacket *src) | 617 | AVPacket *av_packet_clone(const AVPacket *src) |
| 618 | { | 618 | { |
| 619 | AVPacket *ret = av_packet_alloc(); | 619 | AVPacket *ret = av_packet_alloc(); |
| 620 | 620 | ||