diff options
author | Luca Barbato <lu_zero@gentoo.org> | 2016-11-17 19:41:12 +0100 |
---|---|---|
committer | Luca Barbato <lu_zero@gentoo.org> | 2016-11-17 19:41:12 +0100 |
commit | adb0e941c329a4778ade6dd0a326274472992f54 (patch) | |
tree | 277ef87cd581850af88a174a050ea3a871a41080 /libavcodec/avpacket.c | |
parent | 0a4b9d0ccd10b3c39105f99bd320f696f69a75a2 (diff) | |
download | ffmpeg-adb0e941c329a4778ade6dd0a326274472992f54.tar.gz |
avpacket: Mark src pointer as constant
Diffstat (limited to 'libavcodec/avpacket.c')
-rw-r--r-- | libavcodec/avpacket.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/libavcodec/avpacket.c b/libavcodec/avpacket.c index 76fc4eb78f..f2b0a296b8 100644 --- a/libavcodec/avpacket.c +++ b/libavcodec/avpacket.c @@ -352,7 +352,7 @@ void av_packet_unref(AVPacket *pkt) pkt->size = 0; } -int av_packet_ref(AVPacket *dst, AVPacket *src) +int av_packet_ref(AVPacket *dst, const AVPacket *src) { int ret; @@ -384,7 +384,7 @@ fail: return ret; } -AVPacket *av_packet_clone(AVPacket *src) +AVPacket *av_packet_clone(const AVPacket *src) { AVPacket *ret = av_packet_alloc(); |