[vlc-commits] demux: mp4: override sample size of raw audio (fix #17938)
Francois Cartegnie
git at videolan.org
Wed Feb 15 12:07:58 CET 2017
vlc | branch: master | Francois Cartegnie <fcvlcdev at free.fr> | Wed Feb 15 12:05:02 2017 +0100| [a21a6af65bc666d5d8aba55cdbb26e8ba65126af] | committer: Francois Cartegnie
demux: mp4: override sample size of raw audio (fix #17938)
> http://git.videolan.org/gitweb.cgi/vlc.git/?a=commit;h=a21a6af65bc666d5d8aba55cdbb26e8ba65126af
---
modules/demux/mp4/mp4.c | 8 ++++++++
1 file changed, 8 insertions(+)
diff --git a/modules/demux/mp4/mp4.c b/modules/demux/mp4/mp4.c
index 9f93b81..97e2eb0 100644
--- a/modules/demux/mp4/mp4.c
+++ b/modules/demux/mp4/mp4.c
@@ -3468,6 +3468,14 @@ static inline uint32_t MP4_GetFixedSampleSize( const mp4_track_t *p_track,
case ATOM_twos:
case ATOM_sowt:
case ATOM_raw:
+ case VLC_CODEC_S24L:
+ case VLC_CODEC_S24B:
+ case VLC_CODEC_S32L:
+ case VLC_CODEC_S32B:
+ case VLC_CODEC_F32L:
+ case VLC_CODEC_F32B:
+ case VLC_CODEC_F64L:
+ case VLC_CODEC_F64B:
i_size = ((p_soun->i_samplesize+7)/8) * p_soun->i_channelcount;
break;
case VLC_CODEC_ALAW:
More information about the vlc-commits
mailing list