[vlc-commits] mux:ogg: simplify the Dirac delay computation
Steve Lhomme
git at videolan.org
Fri Jul 6 12:42:10 CEST 2018
vlc | branch: master | Steve Lhomme <robux4 at ycbcr.xyz> | Wed Jun 13 10:27:25 2018 +0200| [0690c283060da3e54e428b655c5545474d07a1f7] | committer: Steve Lhomme
mux:ogg: simplify the Dirac delay computation
> http://git.videolan.org/gitweb.cgi/vlc.git/?a=commit;h=0690c283060da3e54e428b655c5545474d07a1f7
---
modules/mux/ogg.c | 3 +--
1 file changed, 1 insertion(+), 2 deletions(-)
diff --git a/modules/mux/ogg.c b/modules/mux/ogg.c
index 1255dd496d..2decde1d75 100644
--- a/modules/mux/ogg.c
+++ b/modules/mux/ogg.c
@@ -1692,8 +1692,7 @@ static int MuxBlock( sout_mux_t *p_mux, sout_input_t *p_input )
dt *=2;
}
- int64_t delay = pt - dt;
- if ( delay < 0 ) delay *= -1;
+ int64_t delay = llabs(pt - dt);
op.granulepos = (pt - delay) << 31 | (dist&0xff00) << 14
| (delay&0x1fff) << 9 | (dist&0xff);
More information about the vlc-commits
mailing list