[vlc-commits] demux: mp4: don't compare timescale against v1 samplerate

Francois Cartegnie git at videolan.org
Mon Apr 27 21:36:29 CEST 2020


vlc | branch: master | Francois Cartegnie <fcvlcdev at free.fr> | Fri Apr 17 16:34:50 2020 +0200| [fe59e6be10229366d42388958223816ffd7751db] | committer: Francois Cartegnie

demux: mp4: don't compare timescale against v1 samplerate

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

 modules/demux/mp4/essetup.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/modules/demux/mp4/essetup.c b/modules/demux/mp4/essetup.c
index 12d1703c22..d89489ae06 100644
--- a/modules/demux/mp4/essetup.c
+++ b/modules/demux/mp4/essetup.c
@@ -1021,7 +1021,7 @@ int SetupAudioES( demux_t *p_demux, const mp4_track_t *p_track,
             p_fmt->i_original_fourcc = p_fmt->i_codec;
 
             /* Buggy files workaround */
-            if( (p_track->i_timescale != p_soun->i_sampleratehi) )
+            if( p_track->i_timescale != p_soun->i_sampleratehi && p_soun->i_qt_version == 0 )
             {
                 msg_Warn( p_demux, "i_timescale (%"PRId32") != i_sampleratehi "
                           "(%u), making both equal (report any problem).",



More information about the vlc-commits mailing list