[FFmpeg-cvslog] lavf/utils: fix const warning at a find_decoder() call
Clément Bœsch
git at videolan.org
Sat Jun 25 13:45:15 CEST 2016
ffmpeg | branch: master | Clément Bœsch <u at pkh.me> | Sat Jun 25 13:38:53 2016 +0200| [8ca78d0fefa02e44657ad57adab151b7b71b27d3] | committer: Clément Bœsch
lavf/utils: fix const warning at a find_decoder() call
> http://git.videolan.org/gitweb.cgi/ffmpeg.git/?a=commit;h=8ca78d0fefa02e44657ad57adab151b7b71b27d3
---
libavformat/utils.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/libavformat/utils.c b/libavformat/utils.c
index a3c6705..1d73b25 100644
--- a/libavformat/utils.c
+++ b/libavformat/utils.c
@@ -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,
More information about the ffmpeg-cvslog
mailing list