Commit 917d14e6 authored by Michael Niedermayer's avatar Michael Niedermayer

avformat/format: Run image2 probe again when file content data is available

Reviewed-by: 's avatarBenoit Fouet <benoit.fouet@free.fr>
Signed-off-by: 's avatarMichael Niedermayer <michaelni@gmx.at>
parent 321c3cd1
...@@ -202,7 +202,7 @@ AVInputFormat *av_probe_input_format3(AVProbeData *pd, int is_opened, ...@@ -202,7 +202,7 @@ AVInputFormat *av_probe_input_format3(AVProbeData *pd, int is_opened,
fmt = NULL; fmt = NULL;
while ((fmt1 = av_iformat_next(fmt1))) { 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; continue;
score = 0; score = 0;
if (fmt1->read_probe) { if (fmt1->read_probe) {
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment