[vlc-commits] access: live555: really fix off by one

Francois Cartegnie git at videolan.org
Tue Aug 21 14:22:20 CEST 2018


vlc/vlc-3.0 | branch: master | Francois Cartegnie <fcvlcdev at free.fr> | Tue Aug 21 13:26:56 2018 +0200| [ff5d8205a4b7f3c0db6143e881a52add6fc57069] | committer: Francois Cartegnie

access: live555: really fix off by one

(cherry picked from commit fba91f93af1616fac8ef0c1f8f4dd47c196b241e)

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

 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 8d22bdbe5c..421d9f9e62 100644
--- a/modules/access/live555_dtsgen.h
+++ b/modules/access/live555_dtsgen.h
@@ -143,7 +143,7 @@ static mtime_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