# HG changeset patch # User aurel # Date 1181493930 0 # Node ID eb85913b9dc38518884b889c824b10c48560e169 # Parent 39acab18df1a3b1164b0a3ba23d6d2596559c6e8 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. diff -r 39acab18df1a -r eb85913b9dc3 libmpdemux/demux_mkv.c --- 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 */ {