[vlc-commits] demux: avi: GetDPTS remove useless casts

Francois Cartegnie git at videolan.org
Fri Dec 8 16:51:48 CET 2017


vlc | branch: master | Francois Cartegnie <fcvlcdev at free.fr> | Fri Dec  8 12:07:27 2017 +0100| [d183012eda59e60604f7562056a22af7f4219715] | committer: Francois Cartegnie

demux: avi: GetDPTS remove useless casts

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

 modules/demux/avi/avi.c | 8 ++++----
 1 file changed, 4 insertions(+), 4 deletions(-)

diff --git a/modules/demux/avi/avi.c b/modules/demux/avi/avi.c
index 01153930d4..6e3ed7909b 100644
--- a/modules/demux/avi/avi.c
+++ b/modules/demux/avi/avi.c
@@ -1819,10 +1819,10 @@ static mtime_t AVI_GetDPTS( avi_track_t *tk, int64_t i_count )
     if( !tk->i_rate )
         return i_dpts;
 
-    i_dpts = (mtime_t)( (int64_t)1000000 *
-                        (int64_t)i_count *
-                        (int64_t)tk->i_scale /
-                        (int64_t)tk->i_rate );
+    i_dpts = CLOCK_FREQ *
+             i_count *
+             tk->i_scale /
+             tk->i_rate;
 
     if( tk->i_samplesize )
     {



More information about the vlc-commits mailing list