From 6cbf7231c9586968b0cb6df06dc556bacf2a8e99 Mon Sep 17 00:00:00 2001 From: alex Date: Thu, 2 May 2002 16:09:54 +0000 Subject: 10l git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@5941 b3059339-0415-0410-9bf9-f77b7e298cf2 --- libmpcodecs/vd_ffmpeg.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/libmpcodecs/vd_ffmpeg.c b/libmpcodecs/vd_ffmpeg.c index d0a03e2a1f..7080ebf428 100644 --- a/libmpcodecs/vd_ffmpeg.c +++ b/libmpcodecs/vd_ffmpeg.c @@ -104,7 +104,7 @@ static int init(sh_video_t *sh){ /* 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'))) { -- cgit v1.2.3