]> git.sesse.net Git - ffmpeg/commitdiff
avcodec/decode: constify the source packet parameter in extract_packet_props()
authorJames Almer <jamrial@gmail.com>
Wed, 3 Mar 2021 22:25:43 +0000 (19:25 -0300)
committerJames Almer <jamrial@gmail.com>
Wed, 3 Mar 2021 22:26:20 +0000 (19:26 -0300)
Signed-off-by: James Almer <jamrial@gmail.com>
libavcodec/decode.c

index d445ac75b0cf3d395c750480dbc3a7250e754aef..5e5d0c70660c4bb74e8bb87a2fc6362b212c1b3c 100644 (file)
@@ -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;