0 means no duration which is the case for Real Media files. -1 means calculate the duration from the FPS which RM files do not really have.

This commit is contained in:
Moritz Bunkus 2005-09-15 20:15:53 +00:00
parent 826a119363
commit 9cbc0f4e56
2 changed files with 6 additions and 1 deletions

View File

@ -1,3 +1,8 @@
2005-09-15 Moritz Bunkus <moritz@bunkus.org>
* mkvmerge: bug fix: Appending files with RealVideo was
broken.
2005-09-09 Moritz Bunkus <moritz@bunkus.org>
* mkvmerge, mkvextract: bug fix: ASS files sometimes use a column

View File

@ -688,7 +688,7 @@ real_reader_c::assemble_video_packet(real_demuxer_t *dmx,
set_dimensions(dmx, assembled->data, assembled->size);
packet_t *packet =
new packet_t(new memory_c(assembled->data, assembled->size, true),
(int64_t)assembled->timecode * 1000000, -1,
(int64_t)assembled->timecode * 1000000, 0,
(assembled->flags & RMFF_FRAME_FLAG_KEYFRAME) ==
RMFF_FRAME_FLAG_KEYFRAME ? VFT_IFRAME :
VFT_PFRAMEAUTOMATIC, VFT_NOBFRAME);