1
0
mirror of https://github.com/FFmpeg/FFmpeg.git synced 2025-08-15 14:13:16 +02:00

lavf/img2dec: Skip COM when auto-detecting jpeg.

It could theoretically contain invalid data that gets ignored by decoders.
This commit is contained in:
Carl Eugen Hoyos
2016-03-22 11:13:24 +01:00
parent 14478b6c38
commit ef888de1c1

View File

@@ -742,6 +742,7 @@ static int jpeg_probe(AVProbeData *p)
case APP13: case APP13:
case APP14: case APP14:
case APP15: case APP15:
case COM:
i += AV_RB16(&b[i + 2]) + 1; i += AV_RB16(&b[i + 2]) + 1;
break; break;
default: default: