mirror of
https://git.ffmpeg.org/ffmpeg.git
synced 2024-12-13 18:55:08 +00:00
img2dec: Support Progressive JPEG in jpeg_probe
There can be multiple SOS markers, so do not return 0 in that case. Signed-off-by: Derek Buitenhuis <derek.buitenhuis@gmail.com>
This commit is contained in:
parent
1f32d01de2
commit
e1c15a9475
@ -714,7 +714,7 @@ static int jpeg_probe(AVProbeData *p)
|
|||||||
state = 0xC0;
|
state = 0xC0;
|
||||||
break;
|
break;
|
||||||
case 0xDA:
|
case 0xDA:
|
||||||
if (state != 0xC0)
|
if (state != 0xC0 && state != 0xDA)
|
||||||
return 0;
|
return 0;
|
||||||
state = 0xDA;
|
state = 0xDA;
|
||||||
break;
|
break;
|
||||||
|
Loading…
Reference in New Issue
Block a user