]> git.sesse.net Git - ffmpeg/blobdiff - doc/examples/extract_mvs.c
avformat/avformat, utils: Make av_find_best_stream const-correct
[ffmpeg] / doc / examples / extract_mvs.c
index de31ccd2b9877c8b33ac602c6a392e0fd8cd5f4c..42e1844150e5505b624e1efa93e4abd2aeea0e59 100644 (file)
@@ -78,7 +78,7 @@ static int open_codec_context(AVFormatContext *fmt_ctx, enum AVMediaType type)
     int ret;
     AVStream *st;
     AVCodecContext *dec_ctx = NULL;
-    AVCodec *dec = NULL;
+    const AVCodec *dec = NULL;
     AVDictionary *opts = NULL;
 
     ret = av_find_best_stream(fmt_ctx, type, -1, -1, &dec, 0);