Commit 28701b80 authored by aurel's avatar aurel

ensure that negative block_time are properly checked

(workaround unsigned comparison)


git-svn-id: file:///var/local/repositories/ffmpeg/trunk@10058 9553f0bf-9b14-0410-a0b8-cfaf0461ba5b
parent be00d535
......@@ -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++) {
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment