Only use a packet before it has been sent downstream with add_packet(). Fixes Anthill bug #160.

This commit is contained in:
Moritz Bunkus 2005-11-02 16:04:32 +00:00
parent f71fa423da
commit 6b3af0f3e6
2 changed files with 9 additions and 2 deletions

View File

@ -1,3 +1,9 @@
2005-11-02 Moritz Bunkus <moritz@bunkus.org>
* mkvmerge: bug fix: Fixed another bug when appending AVC/h.264
tracks that would mkvmerge cause to die with "bref_packet ==
NULL". Fixes Anthill bug #160.
2005-11-01 Moritz Bunkus <moritz@bunkus.org> 2005-11-01 Moritz Bunkus <moritz@bunkus.org>
* mmg: bug fix: When the user saved the muxing output in a log * mmg: bug fix: When the user saved the muxing output in a log

View File

@ -772,9 +772,10 @@ mpeg4_p10_video_packetizer_c::process(packet_cptr packet) {
packet->bref = ref_timecode; packet->bref = ref_timecode;
} }
add_packet(packet);
ref_timecode = packet->timecode; ref_timecode = packet->timecode;
add_packet(packet);
return FILE_STATUS_MOREDATA; return FILE_STATUS_MOREDATA;
} }