diff options
author | Carl Eugen Hoyos <ceffmpeg@gmail.com> | 2018-01-20 16:07:25 +0100 |
---|---|---|
committer | Carl Eugen Hoyos <ceffmpeg@gmail.com> | 2018-01-21 03:46:40 +0100 |
commit | 251f0bcb7be9e42af91c1beb346d752185bbcbb9 (patch) | |
tree | 45564b5db7f893739ca9020ebc5836c590aa24b2 /libavformat/rawdec.c | |
parent | 0b9b7f0b46a80b848b19ebbb624cc7dc06bd33b7 (diff) | |
download | ffmpeg-251f0bcb7be9e42af91c1beb346d752185bbcbb9.tar.gz |
lavf/rawdec: Also probe the last byte of mjpeg streams.
Fixes ticket #6957.
Diffstat (limited to 'libavformat/rawdec.c')
-rw-r--r-- | libavformat/rawdec.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/libavformat/rawdec.c b/libavformat/rawdec.c index e926549a60..b38a4b5e5d 100644 --- a/libavformat/rawdec.c +++ b/libavformat/rawdec.c @@ -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; |