提交 7fd1c85e 编写于 作者: A Alex Agranovsky 提交者: Michael Niedermayer

lavf/mpjpegdec: Fixed dereference after null check

Fixes Coverity CID 1341576
Signed-off-by: NMichael Niedermayer <michael@niedermayer.cc>
上级 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% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册