Commit 7fd1c85e authored by Alex Agranovsky's avatar Alex Agranovsky Committed by Michael Niedermayer

lavf/mpjpegdec: Fixed dereference after null check

Fixes Coverity CID 1341576
Signed-off-by: 's avatarMichael Niedermayer <michael@niedermayer.cc>
parent 80ceb469
......@@ -260,8 +260,10 @@ static char* mpjpeg_get_boundary(AVIOContext* pb)
start = mime_type;
while (start != NULL && *start != '\0') {
start = strchr(start, ';');
if (start)
start = start+1;
if (!start)
break;
start = start+1;
while (av_isspace(*start))
start++;
......
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