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

Francois Cartegnie git at videolan.org
Mon Feb 5 17:02:21 CET 2018


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

demux: mp4: fix sample agregation v0 compressed audio

(cherry picked from commit 86de6e31817c77d28359c58fcf224ec239b592cf)

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

 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 ef7513f5f3..7be3ffc481 100644
--- a/modules/demux/mp4/mp4.c
+++ b/modules/demux/mp4/mp4.c
@@ -3720,8 +3720,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