[Mplayer-cvslog] CVS: main/libmpcodecs vd_ffmpeg.c,1.90,1.91

Michael Niedermayer CVS michael at mplayerhq.hu
Sat May 10 02:53:44 CEST 2003


Update of /cvsroot/mplayer/main/libmpcodecs
In directory mail:/var/tmp.root/cvs-serv31408

Modified Files:
	vd_ffmpeg.c 
Log Message:
passing ImageDesc (stsd) to ffsvq3


Index: vd_ffmpeg.c
===================================================================
RCS file: /cvsroot/mplayer/main/libmpcodecs/vd_ffmpeg.c,v
retrieving revision 1.90
retrieving revision 1.91
diff -u -r1.90 -r1.91
--- vd_ffmpeg.c	6 May 2003 15:28:01 -0000	1.90
+++ vd_ffmpeg.c	10 May 2003 00:53:14 -0000	1.91
@@ -251,6 +251,12 @@
 	avctx->extradata = malloc(avctx->extradata_size);
 	memcpy(avctx->extradata, sh->bih+1, avctx->extradata_size);
     }
+    if (sh->ImageDesc &&
+	 sh->format == mmioFOURCC('S','V','Q','3')){
+	avctx->extradata_size = *(int*)sh->ImageDesc;
+	avctx->extradata = malloc(avctx->extradata_size);
+	memcpy(avctx->extradata, ((int*)sh->ImageDesc)+1, avctx->extradata_size);
+    }
     
     if(sh->bih)
 	avctx->bits_per_sample= sh->bih->biBitCount;



More information about the MPlayer-cvslog mailing list