aboutsummaryrefslogtreecommitdiffstats
path: root/libavcodec
diff options
context:
space:
mode:
authorBaptiste Coudurier <baptiste.coudurier@gmail.com>2009-04-14 00:12:29 +0000
committerBaptiste Coudurier <baptiste.coudurier@gmail.com>2009-04-14 00:12:29 +0000
commitde481d7fed90465ffc5303dd15791c3722aff23a (patch)
treedd9add5aa1302a88ac168deea89f24af135f512d /libavcodec
parent1894e741f5a0cbc0818b0acbe0f7e45a22ab9107 (diff)
downloadffmpeg-de481d7fed90465ffc5303dd15791c3722aff23a.tar.gz
avoid strcmp NULL, fix segv on mingw
Originally committed as revision 18502 to svn://svn.ffmpeg.org/ffmpeg/trunk
Diffstat (limited to 'libavcodec')
-rw-r--r--libavcodec/imgconvert.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/libavcodec/imgconvert.c b/libavcodec/imgconvert.c
index ffc0f08e95..46b4cbb5e9 100644
--- a/libavcodec/imgconvert.c
+++ b/libavcodec/imgconvert.c
@@ -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;
}