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

It could theoretically contain invalid data that gets ignored by decoders.
pull/192/head
Carl Eugen Hoyos 9 years ago
parent 14478b6c38
commit ef888de1c1
  1. 1
      libavformat/img2dec.c

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

Loading…
Cancel
Save