# HG changeset patch # User arpi_esp # Date 987345967 0 # Node ID 50955d1a56c1fdbc8914ae754ae1f00d1002c277 # Parent 0969d4ef0a34107b48636a482497325e1c38dfd2 bih fix for mpegs diff -r 0969d4ef0a34 -r 50955d1a56c1 mplayer.c --- a/mplayer.c Sun Apr 15 14:45:15 2001 +0000 +++ b/mplayer.c Sun Apr 15 14:46:07 2001 +0000 @@ -868,7 +868,8 @@ //================== Init VIDEO (codec & libvo) ========================== // Go through the codec.conf and find the best codec... -sh_video->codec=find_codec(sh_video->format,(unsigned int*) &sh_video->bih->biCompression,NULL,0); +sh_video->codec=find_codec(sh_video->format, + sh_video->bih?((unsigned int*) &sh_video->bih->biCompression):NULL,NULL,0); if(!sh_video->codec){ printf("Can't find codec for video format 0x%X !\n",sh_video->format); exit(1);