demux_mkv: enable libavcodec parser for eac3

It appears some (or all) mkv files with EAC3 are muxed in a way that
breaks FFmpeg's spdifenc. I suspect it's because either dependent
substream packets are localted in their own packets, or the reverse. Or
possibly this is case where the muxer did not respect packet boundaries
at all. Enabling the EAC3 parser seems to fix this anyway, because why
waste your precious time on retarded Dolby bullshit technology? (Which
idiot came up with this shitty substream garbage?)

Observed with dolby_digital_plus_channel_check_lossless-DWEU.mkv.

Fixes #5578.
This commit is contained in:
wm4 2018-03-01 12:51:44 +01:00 committed by Jan Ekström
parent 4a5a4b676e
commit 6f27a165a8
1 changed files with 1 additions and 1 deletions

View File

@ -1760,7 +1760,7 @@ static int demux_mkv_open_audio(demuxer_t *demuxer, mkv_track_t *track)
const char *codec = sh_a->codec;
if (!strcmp(codec, "mp2") || !strcmp(codec, "mp3") ||
!strcmp(codec, "truehd"))
!strcmp(codec, "truehd") || !strcmp(codec, "eac3"))
{
track->parse = true;
} else if (!strcmp(codec, "flac")) {