[vlc-commits] mp4 muxer: output Constant Frame Rate files

Rafaël Carré git at videolan.org
Mon Sep 2 17:27:19 CEST 2013


vlc/vlc-2.1 | branch: master | Rafaël Carré <funman at videolan.org> | Sat Aug 31 16:41:49 2013 +0200| [f11145730b46493b42690a13e622d7bee20dbb9b] | committer: Jean-Baptiste Kempf

mp4 muxer: output Constant Frame Rate files

Some samples still report VFR

Signed-off-by: Jean-Baptiste Kempf <jb at videolan.org>

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

 modules/mux/mp4.c |    4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/modules/mux/mp4.c b/modules/mux/mp4.c
index 9ea54a9..a74bf79 100644
--- a/modules/mux/mp4.c
+++ b/modules/mux/mp4.c
@@ -1392,7 +1392,7 @@ static bo_t *GetStblBox( sout_mux_t *p_mux, mp4_stream_t *p_stream )
     if( p_stream->fmt.i_cat == AUDIO_ES )
         i_timescale = p_stream->fmt.audio.i_rate;
     else
-        i_timescale = 1001;
+        i_timescale = CLOCK_FREQ;
 
     /* first, create quantified length */
     for( i = 0, i_dts = 0, i_dts_q = 0; i < p_stream->i_entry_count; i++ )
@@ -1560,7 +1560,7 @@ static bo_t *GetMoovBox( sout_mux_t *p_mux )
         if( p_stream->fmt.i_cat == AUDIO_ES )
             i_timescale = p_stream->fmt.audio.i_rate;
         else
-            i_timescale = 1001;
+            i_timescale = CLOCK_FREQ;
 
         /* *** add /moov/trak *** */
         trak = box_new( "trak" );



More information about the vlc-commits mailing list