[vlc-commits] demux: mp4: fix sample agregation v0 compressed audio

Francois Cartegnie git at videolan.org
Mon Feb 5 17:00:40 CET 2018


vlc | branch: master | Francois Cartegnie <fcvlcdev at free.fr> | Mon Feb  5 16:52:18 2018 +0100| [86de6e31817c77d28359c58fcf224ec239b592cf] | committer: Francois Cartegnie

demux: mp4: fix sample agregation v0 compressed audio

> http://git.videolan.org/gitweb.cgi/vlc.git/?a=commit;h=86de6e31817c77d28359c58fcf224ec239b592cf
---

 modules/demux/mp4/mp4.c | 4 ++++
 1 file changed, 4 insertions(+)

diff --git a/modules/demux/mp4/mp4.c b/modules/demux/mp4/mp4.c
index 85ed65b702..06ae1ff2f3 100644
--- a/modules/demux/mp4/mp4.c
+++ b/modules/demux/mp4/mp4.c
@@ -3793,8 +3793,12 @@ static uint32_t MP4_TrackGetReadSize( mp4_track_t *p_track, uint32_t *pi_nb_samp
             case VLC_CODEC_MPGA:
             case VLC_CODEC_MP2:
             case VLC_CODEC_MP3:
+            case VLC_CODEC_DTS:
+            case VLC_CODEC_MP4A:
+            case VLC_CODEC_A52:
                 i_max_v0_samples = 1;
                 break;
+                /* fixme, reverse using a list of uncompressed codecs */
             default:
                 /* Read 25ms of samples (uncompressed) */
                 i_max_v0_samples = p_track->fmt.audio.i_rate / 40 *



More information about the vlc-commits mailing list