]> git.sesse.net Git - ffmpeg/blobdiff - doc/examples/demuxing_decoding.c
avcodec/codec, allcodecs: Constify the AVCodec API
[ffmpeg] / doc / examples / demuxing_decoding.c
index db5e0cb951424911c299177d9647c8912faf695e..55fdb2555c749734cec28e5f11758c3caf964d68 100644 (file)
@@ -149,7 +149,7 @@ static int open_codec_context(int *stream_idx,
 {
     int ret, stream_index;
     AVStream *st;
-    AVCodec *dec = NULL;
+    const AVCodec *dec = NULL;
     AVDictionary *opts = NULL;
 
     ret = av_find_best_stream(fmt_ctx, type, -1, -1, NULL, 0);