1
mirror of https://git.videolan.org/git/ffmpeg.git synced 2024-08-08 10:25:46 +02:00

lavf/mpjpegdec: Fixed dereference after null check

Fixes Coverity CID 1341576

Signed-off-by: Michael Niedermayer <michael@niedermayer.cc>
This commit is contained in:
Alex Agranovsky 2015-12-09 12:48:20 -05:00 committed by Michael Niedermayer
parent 80ceb4696a
commit 7fd1c85e51

View File

@ -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++;