[MPlayer-cvslog] CVS: main/libmpcodecs ad_ffmpeg.c,1.17,1.18

Alex Beregszaszi syncmail at mplayerhq.hu
Tue Feb 1 20:19:43 CET 2005


CVS change done by Alex Beregszaszi

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

Modified Files:
	ad_ffmpeg.c 
Log Message:
pass wave extradata to the codec..

Index: ad_ffmpeg.c
===================================================================
RCS file: /cvsroot/mplayer/main/libmpcodecs/ad_ffmpeg.c,v
retrieving revision 1.17
retrieving revision 1.18
diff -u -r1.17 -r1.18
--- ad_ffmpeg.c	8 Jan 2005 19:16:21 -0000	1.17
+++ ad_ffmpeg.c	1 Feb 2005 19:19:40 -0000	1.18
@@ -78,6 +78,15 @@
                lavc_context->extradata_size);
     }
 
+    // for QDM2
+    if (sh_audio->codecdata_len && sh_audio->codecdata && !lavc_context->extradata)
+    {
+        lavc_context->extradata = av_malloc(sh_audio->codecdata_len);
+        lavc_context->extradata_size = sh_audio->codecdata_len;
+        memcpy(lavc_context->extradata, (char *)sh_audio->codecdata, 
+               lavc_context->extradata_size);	
+    }
+
     /* open it */
     if (avcodec_open(lavc_context, lavc_codec) < 0) {
         mp_msg(MSGT_DECAUDIO,MSGL_ERR, MSGTR_CantOpenCodec);




More information about the MPlayer-cvslog mailing list