lavc/utils: Make second parameter to apply_param_change() const.
authorCarl Eugen Hoyos <cehoyos@ag.or.at>
Fri, 24 Feb 2017 01:18:23 +0000 (02:18 +0100)
committerCarl Eugen Hoyos <cehoyos@ag.or.at>
Fri, 24 Feb 2017 10:04:37 +0000 (11:04 +0100)
Fixes a compilation warning:
passing argument 2 of ‘apply_param_change’ discards ‘const’ qualifier from pointer target type

libavcodec/utils.c

index f4085bf..1156e43 100644 (file)
@@ -2092,7 +2092,7 @@ static int64_t guess_correct_pts(AVCodecContext *ctx,
     return pts;
 }
 
-static int apply_param_change(AVCodecContext *avctx, AVPacket *avpkt)
+static int apply_param_change(AVCodecContext *avctx, const AVPacket *avpkt)
 {
     int size = 0, ret;
     const uint8_t *data;