summaryrefslogtreecommitdiffstats
path: root/mplayer.c
diff options
context:
space:
mode:
authorarpi_esp <arpi_esp@b3059339-0415-0410-9bf9-f77b7e298cf2>2001-04-15 14:46:07 +0000
committerarpi_esp <arpi_esp@b3059339-0415-0410-9bf9-f77b7e298cf2>2001-04-15 14:46:07 +0000
commit1d1d5e791492d9e0fb10269df79d2615413bc20b (patch)
treea9e5efd2af27ea6450beefc2938d7d42d8d659cd /mplayer.c
parent544e51e95c3355282e837e89751a01d23c21f18d (diff)
downloadmpv-1d1d5e791492d9e0fb10269df79d2615413bc20b.tar.bz2
mpv-1d1d5e791492d9e0fb10269df79d2615413bc20b.tar.xz
bih fix for mpegs
git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@435 b3059339-0415-0410-9bf9-f77b7e298cf2
Diffstat (limited to 'mplayer.c')
-rw-r--r--mplayer.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/mplayer.c b/mplayer.c
index af7931cddc..3d74849faa 100644
--- a/mplayer.c
+++ b/mplayer.c
@@ -868,7 +868,8 @@ if(has_audio){
//================== 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);