changeset 23514:eb85913b9dc3

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.
author aurel
date Sun, 10 Jun 2007 16:45:30 +0000
parents 39acab18df1a
children 8def0127da2f
files libmpdemux/demux_mkv.c
diffstat 1 files changed, 2 insertions(+), 2 deletions(-) [+]
line wrap: on
line diff
--- a/libmpdemux/demux_mkv.c	Sun Jun 10 10:05:54 2007 +0000
+++ b/libmpdemux/demux_mkv.c	Sun Jun 10 16:45:30 2007 +0000
@@ -2024,8 +2024,8 @@
   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 */
     {