[vlc-commits] access: live555: really fix off by one
Francois Cartegnie
git at videolan.org
Tue Aug 21 14:21:00 CEST 2018
vlc | branch: master | Francois Cartegnie <fcvlcdev at free.fr> | Tue Aug 21 13:26:56 2018 +0200| [fba91f93af1616fac8ef0c1f8f4dd47c196b241e] | committer: Francois Cartegnie
access: live555: really fix off by one
> http://git.videolan.org/gitweb.cgi/vlc.git/?a=commit;h=fba91f93af1616fac8ef0c1f8f4dd47c196b241e
---
modules/access/live555_dtsgen.h | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/modules/access/live555_dtsgen.h b/modules/access/live555_dtsgen.h
index b532db902d..e001f4c24d 100644
--- a/modules/access/live555_dtsgen.h
+++ b/modules/access/live555_dtsgen.h
@@ -143,7 +143,7 @@ static vlc_tick_t dtsgen_GetDTS(struct dtsgen_t *d)
* use the reorderdepth th packet as dts offset */
if(d->count > DTSGEN_REORDER_MAX)
{
- i_dts = d->ordereddts[(d->count - 1) - (d->reorderdepth + 1)];
+ i_dts = d->ordereddts[d->count - d->reorderdepth - 1];
}
/* When starting, we craft a slow incrementing DTS to ensure
we can't go backward due to reorder need */
More information about the vlc-commits
mailing list