mirror of
https://git.ffmpeg.org/ffmpeg.git
synced 2026-11-06 21:04:45 +03: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:
committed by
Derek Buitenhuis
parent
1f32d01de2
commit
e1c15a9475
@@ -714,7 +714,7 @@ static int jpeg_probe(AVProbeData *p)
|
||||
state = 0xC0;
|
||||
break;
|
||||
case 0xDA:
|
||||
if (state != 0xC0)
|
||||
if (state != 0xC0 && state != 0xDA)
|
||||
return 0;
|
||||
state = 0xDA;
|
||||
break;
|
||||
|
||||
Reference in New Issue
Block a user