ref: 8498be7f35f42ef1d32c4de67428dbf05a6057bf
parent: 891c7d0545e6138e23373883eacf2d10442a7e36
author: menno <menno>
date: Tue Oct 19 14:02:10 EDT 2004
in_mp4.c: small bugfix for crashing at end of file
--- a/plugins/in_mp4/in_mp4.c
+++ b/plugins/in_mp4/in_mp4.c
@@ -22,7 +22,7 @@
** Commercial non-GPL licensing of this software is possible.
** For more info contact Ahead Software through [email protected].
**
-** $Id: in_mp4.c,v 1.55 2004/10/18 19:25:00 menno Exp $
+** $Id: in_mp4.c,v 1.56 2004/10/19 18:02:10 menno Exp $
**/
//#define DEBUG_OUTPUT
@@ -2219,7 +2219,7 @@
show_error(module.hMainWindow, NeAACDecGetErrorMessage(frameInfo.error));
mp4state.last_frame = 1;
}
- if (mp4state.sampleId > mp4state.numSamples)
+ if (mp4state.sampleId >= mp4state.numSamples)
mp4state.last_frame = 1;
if (buffer) free(buffer);