Mercurial > libavformat.hg
changeset 2364:7c31128b23f8 libavformat
ensure that negative block_time are properly checked
(workaround unsigned comparison)
author | aurel |
---|---|
date | Fri, 10 Aug 2007 15:37:55 +0000 |
parents | 3f3a4b5fc5bb |
children | 76827ffd1cf6 |
files | matroskadec.c |
diffstat | 1 files changed, 2 insertions(+), 1 deletions(-) [+] |
line wrap: on
line diff
--- a/matroskadec.c Fri Aug 10 14:23:18 2007 +0000 +++ b/matroskadec.c Fri Aug 10 15:37:55 2007 +0000 @@ -2382,7 +2382,8 @@ int real_v = matroska->tracks[track]->flags & MATROSKA_TRACK_REAL_V; uint64_t timecode = AV_NOPTS_VALUE; - if (cluster_time != (uint64_t)-1 && cluster_time + block_time >= 0) + if (cluster_time != (uint64_t)-1 + && (block_time >= 0 || cluster_time >= -block_time)) timecode = cluster_time + block_time; for (n = 0; n < laces; n++) {