mirror of
https://github.com/FFmpeg/FFmpeg.git
synced 2025-04-02 20:35:37 +02:00
doc/examples/demuxing_decoding: Remove unused options
Signed-off-by: Andreas Rheinhardt <andreas.rheinhardt@outlook.com>
This commit is contained in:
parent
73f9d5b673
commit
933308a290
@ -150,7 +150,6 @@ static int open_codec_context(int *stream_idx,
|
|||||||
int ret, stream_index;
|
int ret, stream_index;
|
||||||
AVStream *st;
|
AVStream *st;
|
||||||
const AVCodec *dec = NULL;
|
const AVCodec *dec = NULL;
|
||||||
AVDictionary *opts = NULL;
|
|
||||||
|
|
||||||
ret = av_find_best_stream(fmt_ctx, type, -1, -1, NULL, 0);
|
ret = av_find_best_stream(fmt_ctx, type, -1, -1, NULL, 0);
|
||||||
if (ret < 0) {
|
if (ret < 0) {
|
||||||
@ -185,7 +184,7 @@ static int open_codec_context(int *stream_idx,
|
|||||||
}
|
}
|
||||||
|
|
||||||
/* Init the decoders */
|
/* 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",
|
fprintf(stderr, "Failed to open %s codec\n",
|
||||||
av_get_media_type_string(type));
|
av_get_media_type_string(type));
|
||||||
return ret;
|
return ret;
|
||||||
|
Loading…
x
Reference in New Issue
Block a user