mirror of https://git.ffmpeg.org/ffmpeg.git
lavf/img2dec: Skip COM when auto-detecting jpeg.
It could theoretically contain invalid data that gets ignored by decoders.
This commit is contained in:
parent
14478b6c38
commit
ef888de1c1
|
@ -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…
Reference in New Issue