]> git.sesse.net Git - ffmpeg/commitdiff
lavf/utils: fix const warning at a find_decoder() call
authorClément Bœsch <u@pkh.me>
Sat, 25 Jun 2016 11:38:53 +0000 (13:38 +0200)
committerClément Bœsch <u@pkh.me>
Sat, 25 Jun 2016 11:38:53 +0000 (13:38 +0200)
libavformat/utils.c

index a3c67053535e21f3b4deaaa958c5904c574614ab..1d73b25bc4fb15fc0f1eaec30bc14c1657428d37 100644 (file)
@@ -3610,7 +3610,7 @@ FF_ENABLE_DEPRECATION_WARNINGS
             st = ic->streams[stream_index];
             avctx = st->internal->avctx;
             if (!has_codec_parameters(st, NULL)) {
-                AVCodec *codec = find_decoder(ic, st, st->codecpar->codec_id);
+                const AVCodec *codec = find_decoder(ic, st, st->codecpar->codec_id);
                 if (codec && !avctx->codec) {
                     if (avcodec_open2(avctx, codec, (options && stream_index < orig_nb_streams) ? &options[stream_index] : NULL) < 0)
                         av_log(ic, AV_LOG_WARNING,