[MPlayer-cvslog] CVS: main/libmpdemux demux_ts.c,1.52,1.53

Nico Sabbi CVS syncmail at mplayerhq.hu
Sat May 13 00:33:45 CEST 2006


CVS change done by Nico Sabbi CVS

Update of /cvsroot/mplayer/main/libmpdemux
In directory mail:/var2/tmp/cvs-serv1204

Modified Files:
	demux_ts.c 
Log Message:
allocate correct extradata size

Index: demux_ts.c
===================================================================
RCS file: /cvsroot/mplayer/main/libmpdemux/demux_ts.c,v
retrieving revision 1.52
retrieving revision 1.53
diff -u -r1.52 -r1.53
--- demux_ts.c	12 May 2006 22:21:29 -0000	1.52
+++ demux_ts.c	12 May 2006 22:33:42 -0000	1.53
@@ -923,7 +923,7 @@
 		if(params.vtype == VIDEO_AVC && es->extradata && es->extradata_len)
 		{
 			int w = 0, h = 0;
-			sh_video->bih = (BITMAPINFOHEADER *) calloc(1, sizeof(BITMAPINFOHEADER) + 4096);
+			sh_video->bih = (BITMAPINFOHEADER *) calloc(1, sizeof(BITMAPINFOHEADER) + es->extradata_len);
 			sh_video->bih->biSize= sizeof(BITMAPINFOHEADER) + es->extradata_len;
 			sh_video->bih->biCompression = params.vtype;
 			memcpy(sh_video->bih + 1, es->extradata, es->extradata_len);




More information about the MPlayer-cvslog mailing list