diff options
author | Michael Niedermayer <michaelni@gmx.at> | 2015-04-20 22:22:31 +0200 |
---|---|---|
committer | Michael Niedermayer <michaelni@gmx.at> | 2015-04-21 00:58:11 +0200 |
commit | ba631b791435c395361e2026fc7419b341e57813 (patch) | |
tree | fb66201c011105681ab3d3c8ca53488275823f38 /libavformat | |
parent | 26a0bcb15b83c926eb2688b145900a94ca851a26 (diff) | |
download | ffmpeg-ba631b791435c395361e2026fc7419b341e57813.tar.gz |
avformat/utils: Ensure that AVFMT_FLAG_CUSTOM_IO is set before use
Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
Diffstat (limited to 'libavformat')
-rw-r--r-- | libavformat/utils.c | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/libavformat/utils.c b/libavformat/utils.c index e213b8312a..950b3c67e4 100644 --- a/libavformat/utils.c +++ b/libavformat/utils.c @@ -418,6 +418,9 @@ int avformat_open_input(AVFormatContext **ps, const char *filename, if (options) av_dict_copy(&tmp, *options, 0); + if (s->pb) // must be before any goto fail + s->flags |= AVFMT_FLAG_CUSTOM_IO; + if ((ret = av_opt_set_dict(s, &tmp)) < 0) goto fail; |