aboutsummaryrefslogtreecommitdiffstats
path: root/ffmpeg.c
diff options
context:
space:
mode:
authorMichael Niedermayer <michaelni@gmx.at>2014-05-05 14:44:33 +0200
committerMichael Niedermayer <michaelni@gmx.at>2014-05-05 14:44:33 +0200
commit42b7bda41a4f7717d41b576e184da2875f7972f2 (patch)
treeb59e44f9c9d84be410d921400674122958949217 /ffmpeg.c
parent6e397074380e64b177e51d5a9ed2a96e1a5b5f7a (diff)
parentf3a6ad22c977c8fea87c4c5e4535061db6324d66 (diff)
downloadffmpeg-42b7bda41a4f7717d41b576e184da2875f7972f2.tar.gz
Merge commit 'f3a6ad22c977c8fea87c4c5e4535061db6324d66'
* commit 'f3a6ad22c977c8fea87c4c5e4535061db6324d66': avconv: rename InputStream.opts to InputStream.decoder_opts Conflicts: ffmpeg.c Merged-by: Michael Niedermayer <michaelni@gmx.at>
Diffstat (limited to 'ffmpeg.c')
-rw-r--r--ffmpeg.c10
1 files changed, 5 insertions, 5 deletions
diff --git a/ffmpeg.c b/ffmpeg.c
index d0cdd4f375..40b4d5179e 100644
--- a/ffmpeg.c
+++ b/ffmpeg.c
@@ -501,7 +501,7 @@ static void ffmpeg_cleanup(int ret)
av_frame_free(&ist->decoded_frame);
av_frame_free(&ist->filter_frame);
- av_dict_free(&ist->opts);
+ av_dict_free(&ist->decoder_opts);
avsubtitle_free(&ist->prev_sub.subtitle);
av_frame_free(&ist->sub2video.frame);
av_freep(&ist->filters);
@@ -2249,9 +2249,9 @@ static int init_input_stream(int ist_index, char *error, int error_len)
av_opt_set_int(ist->st->codec, "refcounted_frames", 1, 0);
- if (!av_dict_get(ist->opts, "threads", NULL, 0))
- av_dict_set(&ist->opts, "threads", "auto", 0);
- if ((ret = avcodec_open2(ist->st->codec, codec, &ist->opts)) < 0) {
+ if (!av_dict_get(ist->decoder_opts, "threads", NULL, 0))
+ av_dict_set(&ist->decoder_opts, "threads", "auto", 0);
+ if ((ret = avcodec_open2(ist->st->codec, codec, &ist->decoder_opts)) < 0) {
if (ret == AVERROR_EXPERIMENTAL)
abort_codec_experimental(codec, 0);
@@ -2261,7 +2261,7 @@ static int init_input_stream(int ist_index, char *error, int error_len)
ist->file_index, ist->st->index, av_err2str(ret));
return ret;
}
- assert_avoptions(ist->opts);
+ assert_avoptions(ist->decoder_opts);
}
ist->next_pts = AV_NOPTS_VALUE;