Browse Source

ensure that negative block_time are properly checked

(workaround unsigned comparison)

Originally committed as revision 10058 to svn://svn.ffmpeg.org/ffmpeg/trunk
tags/v0.5
Aurelien Jacobs 18 years ago
parent
commit
9c3e2f78a0
1 changed files with 2 additions and 1 deletions
  1. +2
    -1
      libavformat/matroskadec.c

+ 2
- 1
libavformat/matroskadec.c View File

@@ -2382,7 +2382,8 @@ matroska_parse_block(MatroskaDemuxContext *matroska, uint8_t *data, int size,
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++) {


Loading…
Cancel
Save