Commit 251f0bcb authored by Carl Eugen Hoyos's avatar Carl Eugen Hoyos

lavf/rawdec: Also probe the last byte of mjpeg streams.

Fixes ticket #6957.
parent 0b9b7f0b
......@@ -130,7 +130,7 @@ static int mjpeg_probe(AVProbeData *p)
int nb_invalid = 0;
int nb_frames = 0;
for (i=0; i<p->buf_size-2; i++) {
for (i = 0; i < p->buf_size - 1; i++) {
int c;
if (p->buf[i] != 0xFF)
continue;
......
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