Mercurial > libavformat.hg
comparison matroska.c @ 1544:49256f9ea0e9 libavformat
matroska: scale timecode according to time_scale
fixes jerky playback of planet.earth.mkv
author | aurel |
---|---|
date | Tue, 28 Nov 2006 23:41:53 +0000 |
parents | 241f6efbbcdc |
children | a782462e2497 |
comparison
equal
deleted
inserted
replaced
1543:394a8590d5a0 | 1544:49256f9ea0e9 |
---|---|
2534 slices = *data++ + 1; | 2534 slices = *data++ + 1; |
2535 lace_size[n]--; | 2535 lace_size[n]--; |
2536 } | 2536 } |
2537 if (cluster_time != (uint64_t)-1 && n == 0) { | 2537 if (cluster_time != (uint64_t)-1 && n == 0) { |
2538 if (cluster_time + block_time >= 0) | 2538 if (cluster_time + block_time >= 0) |
2539 timecode = cluster_time + block_time; | 2539 timecode = (cluster_time + block_time) * matroska->time_scale; |
2540 } | 2540 } |
2541 /* FIXME: duration */ | 2541 /* FIXME: duration */ |
2542 | 2542 |
2543 for (slice=0; slice<slices; slice++) { | 2543 for (slice=0; slice<slices; slice++) { |
2544 int slice_size, slice_offset = 0; | 2544 int slice_size, slice_offset = 0; |