Commit 1eb646ec authored by wm4's avatar wm4 Committed by Michael Niedermayer
Browse files

rawdec: fix mjpeg probing buffer size check

Signed-off-by: default avatarMichael Niedermayer <michael@niedermayer.cc>
(cherry picked from commit 4c6beaed

)
Signed-off-by: default avatarMichael Niedermayer <michael@niedermayer.cc>
No related merge requests found
Showing with 1 addition and 1 deletion
+1 -1
......@@ -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;
......
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