mirror of
https://github.com/FFmpeg/FFmpeg.git
synced 2025-01-24 13:56:33 +02:00
rawdec: fix mjpeg probing buffer size check
Signed-off-by: Michael Niedermayer <michael@niedermayer.cc> (cherry picked from commit 4c6beaed9210f01290e5a5a4e377f93f145172cc) Signed-off-by: Michael Niedermayer <michael@niedermayer.cc>
This commit is contained in:
parent
2c8a8a114c
commit
1900d023ae
@ -191,7 +191,7 @@ static int mjpeg_probe(AVProbeData *p)
|
||||
static const char ct_jpeg[] = "\r\nContent-Type: image/jpeg\r\n";
|
||||
int i;
|
||||
|
||||
for (i=0; i<FFMIN(p->buf_size - sizeof(ct_jpeg), 100); i++)
|
||||
for (i=0; i<FFMIN(p->buf_size - (int)sizeof(ct_jpeg), 100); i++)
|
||||
if (!memcmp(p->buf + i, ct_jpeg, sizeof(ct_jpeg) - 1))
|
||||
return AVPROBE_SCORE_EXTENSION;
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user