summaryrefslogtreecommitdiff
path: root/doc
diff options
context:
space:
mode:
authorAndreas Rheinhardt <andreas.rheinhardt@outlook.com>2021-05-15 08:22:36 +0200
committerAndreas Rheinhardt <andreas.rheinhardt@outlook.com>2021-06-08 12:52:50 +0200
commit933308a29063f849f7b71be08140f56f9dec1eca (patch)
tree9f691abe9ad1d43ef067b75ca163dbbc23ca7f80 /doc
parent73f9d5b6735cd9f939859f6a8540daa88877ab89 (diff)
doc/examples/demuxing_decoding: Remove unused options
Signed-off-by: Andreas Rheinhardt <andreas.rheinhardt@outlook.com>
Diffstat (limited to 'doc')
-rw-r--r--doc/examples/demuxing_decoding.c3
1 files changed, 1 insertions, 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;