diff libmpcodecs/vd_ffmpeg.c @ 5940:dd7b88bb76aa

10l
author alex
date Thu, 02 May 2002 16:09:54 +0000
parents 65ee86f5a45f
children f49ec39ab0c6
line wrap: on
line diff
--- a/libmpcodecs/vd_ffmpeg.c	Thu May 02 12:24:53 2002 +0000
+++ b/libmpcodecs/vd_ffmpeg.c	Thu May 02 16:09:54 2002 +0000
@@ -104,7 +104,7 @@
     /* AVRn stores huffman table in AVI header */
     /* Pegasus MJPEG stores it also in AVI header, but it uses the common
        MJPG fourcc :( */
-    if ((sh->bih->biSize != sizeof(BITMAPINFOHEADER)) &&
+    if (sh->bih && (sh->bih->biSize != sizeof(BITMAPINFOHEADER)) &&
 	(sh->format == mmioFOURCC('A','V','R','n') ||
 	sh->format == mmioFOURCC('M','J','P','G')))
     {