[vlc-commits] demux: avi: GetDPTS remove useless casts
Francois Cartegnie
git at videolan.org
Wed Dec 20 15:37:14 CET 2017
vlc/vlc-3.0 | branch: master | Francois Cartegnie <fcvlcdev at free.fr> | Fri Dec 8 12:07:27 2017 +0100| [7f9d27ea67fc8895adbadc4d305e3840870afd4b] | committer: Francois Cartegnie
demux: avi: GetDPTS remove useless casts
(cherry picked from commit d183012eda59e60604f7562056a22af7f4219715)
> http://git.videolan.org/gitweb.cgi/vlc/vlc-3.0.git/?a=commit;h=7f9d27ea67fc8895adbadc4d305e3840870afd4b
---
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 57b1238392..109573850b 100644
--- a/modules/demux/avi/avi.c
+++ b/modules/demux/avi/avi.c
@@ -1825,10 +1825,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