mirror of
https://gitlab.com/mbunkus/mkvtoolnix.git
synced 2025-01-13 05:31:44 +00:00
Only flush tracks whose packetizers have been created
This commit is contained in:
parent
78a840207a
commit
228350441a
@ -1008,7 +1008,7 @@ mpeg_ts_reader_c::finish() {
|
||||
return flush_packetizers();
|
||||
|
||||
foreach(mpeg_ts_track_ptr &track, tracks)
|
||||
if (0 < track->payload.get_size())
|
||||
if ((-1 != track->ptzr) && (0 < track->payload.get_size()))
|
||||
PTZR(track->ptzr)->process(new packet_t(clone_memory(track->payload.get_buffer(), track->payload.get_size())));
|
||||
|
||||
file_done = true;
|
||||
|
Loading…
Reference in New Issue
Block a user