mirror of
https://github.com/FFmpeg/FFmpeg.git
synced 2025-03-28 12:32:17 +02:00
lavf/img2dec: Skip SOS when auto-detecting jpeg.
Improves jpeg auto-detection.
This commit is contained in:
parent
98084adccf
commit
c0ecc597fa
@ -715,6 +715,7 @@ static int jpeg_probe(AVProbeData *p)
|
|||||||
state = 0xC0;
|
state = 0xC0;
|
||||||
break;
|
break;
|
||||||
case 0xDA:
|
case 0xDA:
|
||||||
|
i += AV_RB16(&b[i + 2]) + 1;
|
||||||
if (state != 0xC0 && state != 0xDA)
|
if (state != 0xC0 && state != 0xDA)
|
||||||
return 0;
|
return 0;
|
||||||
state = 0xDA;
|
state = 0xDA;
|
||||||
|
Loading…
x
Reference in New Issue
Block a user