Commit ef888de1 authored by Carl Eugen Hoyos's avatar Carl Eugen Hoyos

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

It could theoretically contain invalid data that gets ignored by decoders.
parent 14478b6c
...@@ -742,6 +742,7 @@ static int jpeg_probe(AVProbeData *p) ...@@ -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:
......
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