[vlc-devel] Re: CVS Commit (gbazin)
Gildas Bazin
gbazin at netcourrier.com
Fri Aug 8 19:18:11 CEST 2003
On Friday 08 August 2003 19:08, cvs at videolan.org wrote:
>
> Log Message:
>
> * modules/codec/ffmpeg/: proper generation of pts in the video decoder +
couple of bug fixes + cleanup.
> The ffmpeg video decoder can now be used to decode mpeg1/2 videos as
well.
>
There is a bug in ffmpeg cvs (libavcodec) which makes mpeg1/2 decoding
segfault. You need to apply the following patch for this to work.
--
Gildas
--- libavcodec/mpeg12.c 29 Jul 2003 02:09:12 -0000 1.128
+++ libavcodec/mpeg12.c 6 Aug 2003 08:50:44 -0000
@@ -2035,7 +2035,7 @@
Mpeg1Context *s1 = avctx->priv_data;
MpegEncContext *s = &s1->mpeg_enc_ctx;
- if (!s1->mpeg_enc_ctx_allocated)
+ if (!s1->mpeg_enc_ctx_allocated || !s->current_picture_ptr)
return 0;
#ifdef HAVE_XVMC
--
This is the vlc-devel mailing-list, see http://www.videolan.org/vlc/
To unsubscribe, please read http://developers.videolan.org/lists.html
If you are in trouble, please contact <postmaster at videolan.org>
More information about the vlc-devel
mailing list