mirror of
https://github.com/FFmpeg/FFmpeg.git
synced 2024-11-26 19:01:44 +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:
parent
80ceb4696a
commit
7fd1c85e51
@ -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++;
|
||||
|
Loading…
Reference in New Issue
Block a user