mirror of
https://github.com/mpv-player/mpv
synced 2024-12-17 20:34:58 +00:00
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
This commit is contained in:
parent
374ae16491
commit
08e5dd0793
@ -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 */
|
||||
{
|
||||
|
Loading…
Reference in New Issue
Block a user