diff options
author | aurel <aurel@b3059339-0415-0410-9bf9-f77b7e298cf2> | 2007-06-10 16:45:30 +0000 |
---|---|---|
committer | aurel <aurel@b3059339-0415-0410-9bf9-f77b7e298cf2> | 2007-06-10 16:45:30 +0000 |
commit | 08e5dd07939c51b0e0106245741e34510c7ea013 (patch) | |
tree | d704076ca7c1da38278c8f3e2bd724474d84633e /libmpdemux | |
parent | 374ae16491ff184a02aa81903dd61fc9cded5631 (diff) |
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.
git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@23534 b3059339-0415-0410-9bf9-f77b7e298cf2
Diffstat (limited to 'libmpdemux')
-rw-r--r-- | libmpdemux/demux_mkv.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/libmpdemux/demux_mkv.c b/libmpdemux/demux_mkv.c index 5d0290bfb3..a37cfa6583 100644 --- a/libmpdemux/demux_mkv.c +++ b/libmpdemux/demux_mkv.c @@ -2024,8 +2024,8 @@ demux_mkv_open_audio (demuxer_t *demuxer, mkv_track_t *track, int aid) 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 */ { |