Commit 07eec5e7 authored by Carl Eugen Hoyos's avatar Carl Eugen Hoyos

lavf/img2dec: Skip SOF size when probing jpeg.

Fixes auto-detection for some resolutions.
Reported-by: Clément Bœsch
parent 885a6d83
......@@ -709,6 +709,7 @@ static int jpeg_probe(AVProbeData *p)
case 0xC5:
case 0xC6:
case 0xC7:
i += AV_RB16(&b[i + 2]) + 1;
if (state != 0xD8)
return 0;
state = 0xC0;
......
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