aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorReimar Döffinger <Reimar.Doeffinger@gmx.de>2007-01-19 22:52:59 +0000
committerReimar Döffinger <Reimar.Doeffinger@gmx.de>2007-01-19 22:52:59 +0000
commitb8e705ec4511ec97ad641008ff397b9d8371dcc2 (patch)
tree6a031e154f46fc749d1fb508a5bdea265c488484
parenta3550abd0847f44beb334ad2dcb65a950cc1a3dc (diff)
downloadffmpeg-b8e705ec4511ec97ad641008ff397b9d8371dcc2.tar.gz
Demuxers with AVFMT_NOFILE will open a (possibly different) file themselves,
so do not probe them if is_opened is set. Originally committed as revision 7589 to svn://svn.ffmpeg.org/ffmpeg/trunk
-rw-r--r--libavformat/utils.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/libavformat/utils.c b/libavformat/utils.c
index d541ea0406..07a483199d 100644
--- a/libavformat/utils.c
+++ b/libavformat/utils.c
@@ -279,7 +279,7 @@ AVInputFormat *av_probe_input_format(AVProbeData *pd, int is_opened)
fmt = NULL;
score_max = 0;
for(fmt1 = first_iformat; fmt1 != NULL; fmt1 = fmt1->next) {
- if (!is_opened && !(fmt1->flags & AVFMT_NOFILE))
+ if (!is_opened == !(fmt1->flags & AVFMT_NOFILE))
continue;
score = 0;
if (fmt1->read_probe) {