changeset 8264:1f3708389d0a

10l (broken ffmpeg12)
author michael
date Sun, 24 Nov 2002 11:28:25 +0000
parents 442ea8b6733c
children c5619bee1810
files libmpcodecs/vd_ffmpeg.c
diffstat 1 files changed, 2 insertions(+), 1 deletions(-) [+]
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 */