[vlc-commits] mp4: be more restrictive for samplerate
Jean-Baptiste Kempf
git at videolan.org
Mon Jun 17 22:55:27 CEST 2013
vlc | branch: master | Jean-Baptiste Kempf <jb at videolan.org> | Mon Jun 17 22:55:03 2013 +0200| [bb89f76aea583bc01a0dcbd614760b3107c0a6ca] | committer: Jean-Baptiste Kempf
mp4: be more restrictive for samplerate
Close #8787
> http://git.videolan.org/gitweb.cgi/vlc.git/?a=commit;h=bb89f76aea583bc01a0dcbd614760b3107c0a6ca
---
modules/demux/mp4/mp4.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/modules/demux/mp4/mp4.c b/modules/demux/mp4/mp4.c
index fb80fe5..cd3ba41 100644
--- a/modules/demux/mp4/mp4.c
+++ b/modules/demux/mp4/mp4.c
@@ -2166,7 +2166,7 @@ static int TrackCreateES( demux_t *p_demux, mp4_track_t *p_track,
p_sample->data.p_sample_soun->p_qt_description,
p_track->fmt.i_extra);
}
- if( p_track->fmt.i_extra >= 56 && p_sample->i_type == VLC_CODEC_ALAC )
+ if( p_track->fmt.i_extra == 56 && p_sample->i_type == VLC_CODEC_ALAC )
{
p_track->fmt.audio.i_channels = *((uint8_t*)p_track->fmt.p_extra + 41);
p_track->fmt.audio.i_rate = GetDWBE((uint8_t*)p_track->fmt.p_extra + 52);
More information about the vlc-commits
mailing list