[Mplayer-advusers] [BUG] segfault with some mpg with main-cvs - not with 090-cvs

Arpi arpi at thot.banki.hu
Thu May 22 00:10:34 CEST 2003


Hi,

> Hi,
> 
> I've uploaded to mplayerhq ftp two mpg samples that crash mplayer main
> cvs but they work with the 0.90 branch:
> 
>   seg11_with_mpcvs-ok_with_090.mpg             (1)
>   seg11_with_mplayercvs_ok_with_mplayer090.mpg (2)

try this (from mplayer-g2):

--- decode.c.x  Sun Apr  6 18:42:15 2003
+++ decode.c    Thu May 22 00:08:52 2003
@@ -385,6 +385,10 @@
        mpeg2dec->fbuf[1]->buf[1]=buf[1];
        mpeg2dec->fbuf[1]->buf[2]=buf[2];
        mpeg2dec->fbuf[1]->id=NULL;
+       mpeg2dec->fbuf[2]->buf[0]=buf[0];
+       mpeg2dec->fbuf[2]->buf[1]=buf[1];
+       mpeg2dec->fbuf[2]->buf[2]=buf[2];
+       mpeg2dec->fbuf[2]->id=NULL;
     }
 //        printf("libmpeg2: FBUF 0:%p 1:%p 2:%p\n",
 //
mpeg2dec->fbuf[0]->buf[0],mpeg2dec->fbuf[1]->buf[0],mpeg2dec->fbuf[2]->buf[0]);



A'rpi / Astral & ESP-team

--
Developer of MPlayer G2, the Movie Framework for all - http://www.MPlayerHQ.hu



More information about the MPlayer-advusers mailing list