mirror of
https://github.com/FFmpeg/FFmpeg.git
synced 2025-02-04 08:56:02 +00:00
fix fmt == NULL case
Originally committed as revision 2050 to svn://svn.ffmpeg.org/ffmpeg/trunk
This commit is contained in:
parent
8d6625b621
commit
afdd82bbf0
@ -334,7 +334,7 @@ int av_open_input_file(AVFormatContext **ic_ptr, const char *filename,
|
||||
/* do not open file if the format does not need it. XXX: specific
|
||||
hack needed to handle RTSP/TCP */
|
||||
must_open_file = 1;
|
||||
if ((fmt->flags & AVFMT_NOFILE) ||
|
||||
if ((fmt && (fmt->flags & AVFMT_NOFILE)) ||
|
||||
(fmt == &rtp_demux && !strcmp(filename, "null"))) {
|
||||
must_open_file = 0;
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user