diff options
author | James Almer <jamrial@gmail.com> | 2021-03-03 19:25:43 -0300 |
---|---|---|
committer | James Almer <jamrial@gmail.com> | 2021-03-03 19:26:20 -0300 |
commit | f7840917dadee6a9406a331bf35bb900a8bf1f8b (patch) | |
tree | 4d4c2812c2b387acd480b7499a207005519e0d5a /libavcodec | |
parent | 77ce903f7ad2619fb3f420fd3e7f7b778dcb7704 (diff) | |
download | ffmpeg-f7840917dadee6a9406a331bf35bb900a8bf1f8b.tar.gz |
avcodec/decode: constify the source packet parameter in extract_packet_props()
Signed-off-by: James Almer <jamrial@gmail.com>
Diffstat (limited to 'libavcodec')
-rw-r--r-- | libavcodec/decode.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/libavcodec/decode.c b/libavcodec/decode.c index d445ac75b0..5e5d0c7066 100644 --- a/libavcodec/decode.c +++ b/libavcodec/decode.c @@ -144,7 +144,7 @@ fail2: #define IS_EMPTY(pkt) (!(pkt)->data) -static int copy_packet_props(AVPacket *dst, AVPacket *src) +static int copy_packet_props(AVPacket *dst, const AVPacket *src) { int ret = av_packet_copy_props(dst, src); if (ret < 0) @@ -156,7 +156,7 @@ static int copy_packet_props(AVPacket *dst, AVPacket *src) return 0; } -static int extract_packet_props(AVCodecInternal *avci, AVPacket *pkt) +static int extract_packet_props(AVCodecInternal *avci, const AVPacket *pkt) { AVPacket tmp = { 0 }; int ret = 0; |