mirror of https://git.ffmpeg.org/ffmpeg.git
avformat/utils: Ensure that AVFMT_FLAG_CUSTOM_IO is set before use
Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
(cherry picked from commit ba631b7914
)
Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
This commit is contained in:
parent
8c832e3cc0
commit
81e4b6f11a
|
@ -399,6 +399,9 @@ int avformat_open_input(AVFormatContext **ps, const char *filename,
|
||||||
if (options)
|
if (options)
|
||||||
av_dict_copy(&tmp, *options, 0);
|
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)
|
if ((ret = av_opt_set_dict(s, &tmp)) < 0)
|
||||||
goto fail;
|
goto fail;
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue