Signed-off-by: Andreas Rheinhardt <andreas.rheinha...@outlook.com> --- doc/examples/demuxing_decoding.c | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-)
diff --git a/doc/examples/demuxing_decoding.c b/doc/examples/demuxing_decoding.c index 55fdb2555c..ef1fd2bd53 100644 --- a/doc/examples/demuxing_decoding.c +++ b/doc/examples/demuxing_decoding.c @@ -150,7 +150,6 @@ static int open_codec_context(int *stream_idx, int ret, stream_index; AVStream *st; const AVCodec *dec = NULL; - AVDictionary *opts = NULL; ret = av_find_best_stream(fmt_ctx, type, -1, -1, NULL, 0); if (ret < 0) { @@ -185,7 +184,7 @@ static int open_codec_context(int *stream_idx, } /* Init the decoders */ - if ((ret = avcodec_open2(*dec_ctx, dec, &opts)) < 0) { + if ((ret = avcodec_open2(*dec_ctx, dec, NULL)) < 0) { fprintf(stderr, "Failed to open %s codec\n", av_get_media_type_string(type)); return ret; -- 2.27.0 _______________________________________________ ffmpeg-devel mailing list ffmpeg-devel@ffmpeg.org https://ffmpeg.org/mailman/listinfo/ffmpeg-devel To unsubscribe, visit link above, or email ffmpeg-devel-requ...@ffmpeg.org with subject "unsubscribe".