[Mplayer-cvslog] CVS: main/libmpcodecs vd_ffmpeg.c,1.135,1.136

Michael Niedermayer CVS syncmail at mplayerhq.hu
Mon Oct 11 18:23:23 CEST 2004


CVS change done by Michael Niedermayer CVS

Update of /cvsroot/mplayer/main/libmpcodecs
In directory mail:/var2/tmp/cvs-serv20769

Modified Files:
	vd_ffmpeg.c 
Log Message:
too large extradata


Index: vd_ffmpeg.c
===================================================================
RCS file: /cvsroot/mplayer/main/libmpcodecs/vd_ffmpeg.c,v
retrieving revision 1.135
retrieving revision 1.136
diff -u -r1.135 -r1.136
--- vd_ffmpeg.c	27 Sep 2004 10:08:57 -0000	1.135
+++ vd_ffmpeg.c	11 Oct 2004 16:23:20 -0000	1.136
@@ -347,7 +347,7 @@
 #endif
     if (sh->ImageDesc &&
 	 sh->format == mmioFOURCC('S','V','Q','3')){
-	avctx->extradata_size = *(int*)sh->ImageDesc;
+	avctx->extradata_size = (*(int*)sh->ImageDesc) - sizeof(int);
 	avctx->extradata = malloc(avctx->extradata_size);
 	memcpy(avctx->extradata, ((int*)sh->ImageDesc)+1, avctx->extradata_size);
     }




More information about the MPlayer-cvslog mailing list