# HG changeset patch # User michael # Date 1038137305 0 # Node ID 1f3708389d0acef4ef6e1bdaabf19a15008afd3d # Parent 442ea8b6733c5072ddacafb11eb8a5d3fafe72ac 10l (broken ffmpeg12) diff -r 442ea8b6733c -r 1f3708389d0a libmpcodecs/vd_ffmpeg.c --- 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 */