[MPlayer-cvslog] r23534 - trunk/libmpdemux/demux_mkv.c

aurel subversion at mplayerhq.hu
Sun Jun 10 18:45:30 CEST 2007


Author: aurel
Date: Sun Jun 10 18:45:30 2007
New Revision: 23534

Log:
Don't set random codec parameters for AC3/DTS in mkv.
Those values are not needed anyway.
This fixes stream copying from mkv with mencoder.
Patch by Trent Piepho.


Modified:
   trunk/libmpdemux/demux_mkv.c

Modified: trunk/libmpdemux/demux_mkv.c
==============================================================================
--- trunk/libmpdemux/demux_mkv.c	(original)
+++ trunk/libmpdemux/demux_mkv.c	Sun Jun 10 18:45:30 2007
@@ -2024,8 +2024,8 @@ demux_mkv_open_audio (demuxer_t *demuxer
   else if ((track->a_formattag == 0x2000) || /* AC3 */
            (track->a_formattag == 0x2001)) /* DTS */
     {
-      sh_a->wf->nAvgBytesPerSec = 16000;
-      sh_a->wf->nBlockAlign = 1536;
+      free(sh_a->wf);
+      sh_a->wf = NULL;
     }
   else if (track->a_formattag == 0x0001)  /* PCM || PCM_BE */
     {



More information about the MPlayer-cvslog mailing list