forked from FFmpeg/FFmpeg
lavf/img2dec: Reduce the probe score for incomplete jpgs.
Ensures that probing doesn't finish prematurely for small files.
This commit is contained in:
parent
f28299da8d
commit
fca3083282
1 changed files with 1 additions and 1 deletions
|
@ -756,7 +756,7 @@ static int jpeg_probe(AVProbeData *p)
|
|||
if (state == EOI)
|
||||
return AVPROBE_SCORE_EXTENSION + 1;
|
||||
if (state == SOS)
|
||||
return AVPROBE_SCORE_EXTENSION / 2 + 1;
|
||||
return AVPROBE_SCORE_EXTENSION / 2;
|
||||
return AVPROBE_SCORE_EXTENSION / 8;
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Reference in a new issue