提交 de481d7f 编写于 作者: B Baptiste Coudurier

avoid strcmp NULL, fix segv on mingw

Originally committed as revision 18502 to svn://svn.ffmpeg.org/ffmpeg/trunk
上级 1894e741
......@@ -494,7 +494,7 @@ static enum PixelFormat avcodec_get_pix_fmt_internal(const char *name)
int i;
for (i=0; i < PIX_FMT_NB; i++)
if (!strcmp(pix_fmt_info[i].name, name))
if (pix_fmt_info[i].name && !strcmp(pix_fmt_info[i].name, name))
return i;
return PIX_FMT_NONE;
}
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册