diff libmpcodecs/vd_ffmpeg.c @ 8264:1f3708389d0a

10l (broken ffmpeg12)
author michael
date Sun, 24 Nov 2002 11:28:25 +0000
parents d7bc284a2b4a
children ff0bddb59e81
line wrap: on
line diff
--- a/libmpcodecs/vd_ffmpeg.c	Sun Nov 24 06:23:50 2002 +0000
+++ b/libmpcodecs/vd_ffmpeg.c	Sun Nov 24 11:28:25 2002 +0000
@@ -249,7 +249,8 @@
     }
     
 #if LIBAVCODEC_BUILD >= 4639
-    avctx->bits_per_sample= sh->bih->biBitCount;
+    if(sh->bih)
+	avctx->bits_per_sample= sh->bih->biBitCount;
 #endif    
 
     /* open it */