# HG changeset patch # User alex # Date 1020355794 0 # Node ID dd7b88bb76aa92457bc7045b938eb9b22bd40cfd # Parent 65ee86f5a45f6ef5a21a55ed75d680a4b9e5f3cd 10l diff -r 65ee86f5a45f -r dd7b88bb76aa libmpcodecs/vd_ffmpeg.c --- 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'))) {