Browse Source

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

It could theoretically contain invalid data that gets ignored by decoders.
tags/n3.1
Carl Eugen Hoyos 10 years ago
parent
commit
ef888de1c1
1 changed files with 1 additions and 0 deletions
  1. +1
    -0
      libavformat/img2dec.c

+ 1
- 0
libavformat/img2dec.c View File

@@ -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