Commit de481d7f authored by Baptiste Coudurier's avatar Baptiste Coudurier

avoid strcmp NULL, fix segv on mingw

Originally committed as revision 18502 to svn://svn.ffmpeg.org/ffmpeg/trunk
parent 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% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment