[MPlayer-dev-eng] Re: playing mpeg files with -vc ffmpeg12
Rémi Guyomarch
rguyom at pobox.com
Sun Nov 24 11:42:39 CET 2002
On Sun, Nov 24, 2002 at 10:34:35AM +0100, Johannes Feigl wrote:
> hi,
>
> can please anybody tries to play a mpeg file with the ffmpeg codec? (-vc ffmpeg12)
> with the latest cvs i cannot play mpeg1 and mpeg2...
Here is a short term fix until someone understands why sh->bih is NULL
and adds the right fix...
--- libmpcodecs/vd_ffmpeg.c 20 Nov 2002 13:16:09 -0000 1.71
+++ libmpcodecs/vd_ffmpeg.c 24 Nov 2002 10:33:21 -0000
@@ -249,7 +249,10 @@
}
#if LIBAVCODEC_BUILD >= 4639
- avctx->bits_per_sample= sh->bih->biBitCount;
+ if (sh->bih)
+ avctx->bits_per_sample= sh->bih->biBitCount;
+ else
+ avctx->bits_per_sample= 12; // ??
#endif
/* open it */
--
Rémi
More information about the MPlayer-dev-eng
mailing list