OSDN Git Service

avformat/format: Run image2 probe again when file content data is available
authorMichael Niedermayer <michaelni@gmx.at>
Thu, 11 Sep 2014 14:48:02 +0000 (16:48 +0200)
committerMichael Niedermayer <michaelni@gmx.at>
Fri, 12 Sep 2014 16:20:38 +0000 (18:20 +0200)
Reviewed-by: Benoit Fouet <benoit.fouet@free.fr>
Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
libavformat/format.c

index 828ab52..006cc87 100644 (file)
@@ -202,7 +202,7 @@ AVInputFormat *av_probe_input_format3(AVProbeData *pd, int is_opened,
 
     fmt = NULL;
     while ((fmt1 = av_iformat_next(fmt1))) {
-        if (!is_opened == !(fmt1->flags & AVFMT_NOFILE))
+        if (!is_opened == !(fmt1->flags & AVFMT_NOFILE) && strcmp(fmt1->name, "image2"))
             continue;
         score = 0;
         if (fmt1->read_probe) {