Revision 3884 removed the variable i from the loop end condition causing segfaults if "--engage native_mpeg4" is used together with MPEG-4 part 2 video. Fix for bug 318.

This commit is contained in:
Moritz Bunkus 2008-12-13 22:14:16 +00:00
parent 1d43772307
commit 3a6a29c1d5
2 changed files with 6 additions and 1 deletions

View File

@ -1,3 +1,8 @@
2008-12-13 Moritz Bunkus <moritz@bunkus.org>
* mkvmerge: bug fix: Fixed a crash (segfault) with MPEG-4 part 2
video if "--engage native_mpeg4" is used. Fix for bug 318.
2008-12-08 Moritz Bunkus <moritz@bunkus.org>
* Windows installer: The installer cleans up leftovers from old

View File

@ -503,7 +503,7 @@ mpeg4_p2_video_packetizer_c::flush_frames_maybe(frame_type_e next_frame) {
int num_bframes = 0;
int i;
for (i = 0; m_queued_frames.size() > 0; ++i)
for (i = 0; m_queued_frames.size() > i; ++i)
if (FRAME_TYPE_B == m_queued_frames[i].type)
++num_bframes;