[vlc-commits] demux: mp4: fix MLP/TrueHD audio sample rate
Francois Cartegnie
git at videolan.org
Fri Apr 17 16:02:00 CEST 2020
vlc | branch: master | Francois Cartegnie <fcvlcdev at free.fr> | Fri Apr 17 15:56:54 2020 +0200| [18ed8023a050d8610bb1514b486e1dcddae15266] | committer: Francois Cartegnie
demux: mp4: fix MLP/TrueHD audio sample rate
ref #24597
> http://git.videolan.org/gitweb.cgi/vlc.git/?a=commit;h=18ed8023a050d8610bb1514b486e1dcddae15266
---
modules/demux/mp4/essetup.c | 4 ++++
1 file changed, 4 insertions(+)
diff --git a/modules/demux/mp4/essetup.c b/modules/demux/mp4/essetup.c
index cccd89477f..43662a53eb 100644
--- a/modules/demux/mp4/essetup.c
+++ b/modules/demux/mp4/essetup.c
@@ -967,6 +967,10 @@ int SetupAudioES( demux_t *p_demux, const mp4_track_t *p_track,
}
break;
}
+ case VLC_CODEC_TRUEHD:
+ /* spec violation: 32 bits rate instead of fixed point */
+ p_fmt->audio.i_rate = (p_soun->i_sampleratehi << 16) | p_soun->i_sampleratelo;
+ break;
case ATOM_dtsc: /* DTS */
{
More information about the vlc-commits
mailing list