[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Gnash-commit] gnash ChangeLog libbase/FLVParser.cpp
From: |
Tomas Groth |
Subject: |
[Gnash-commit] gnash ChangeLog libbase/FLVParser.cpp |
Date: |
Mon, 14 May 2007 11:32:49 +0000 |
CVSROOT: /sources/gnash
Module name: gnash
Changes by: Tomas Groth <tgc> 07/05/14 11:32:49
Modified files:
. : ChangeLog
libbase : FLVParser.cpp
Log message:
* libbase/FLVParser.cpp: Fixed a out-of-bound error (bug
#19866).
CVSWeb URLs:
http://cvs.savannah.gnu.org/viewcvs/gnash/ChangeLog?cvsroot=gnash&r1=1.3190&r2=1.3191
http://cvs.savannah.gnu.org/viewcvs/gnash/libbase/FLVParser.cpp?cvsroot=gnash&r1=1.10&r2=1.11
Patches:
Index: ChangeLog
===================================================================
RCS file: /sources/gnash/gnash/ChangeLog,v
retrieving revision 1.3190
retrieving revision 1.3191
diff -u -b -r1.3190 -r1.3191
--- ChangeLog 14 May 2007 10:03:37 -0000 1.3190
+++ ChangeLog 14 May 2007 11:32:48 -0000 1.3191
@@ -1,3 +1,7 @@
+2007-05-14 Tomas Groth Christensen <address@hidden>
+
+ * libbase/FLVParser.cpp: Fixed a out-of-bound error (bug #19866).
+
2007-05-14 Sandro Santilli <address@hidden>
* po/Makefile.am: create destination directories before trying to
Index: libbase/FLVParser.cpp
===================================================================
RCS file: /sources/gnash/gnash/libbase/FLVParser.cpp,v
retrieving revision 1.10
retrieving revision 1.11
diff -u -b -r1.10 -r1.11
--- libbase/FLVParser.cpp 12 May 2007 09:59:44 -0000 1.10
+++ libbase/FLVParser.cpp 14 May 2007 11:32:49 -0000 1.11
@@ -17,7 +17,7 @@
// Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA
//
-// $Id: FLVParser.cpp,v 1.10 2007/05/12 09:59:44 tgc Exp $
+// $Id: FLVParser.cpp,v 1.11 2007/05/14 11:32:49 tgc Exp $
#include "FLVParser.h"
#include "amf.h"
@@ -74,9 +74,9 @@
}
// If there is no video data return 0
- if (_videoFrames.size() == 0 || !_video || _nextVideoFrame < 1) return
0;
+ if (_videoFrames.size() == 0 || !_video || _nextVideoFrame < 2) return
0;
- return _videoFrames[_nextVideoFrame]->timestamp -
_videoFrames[_nextVideoFrame-1]->timestamp;
+ return _videoFrames[_nextVideoFrame-1]->timestamp -
_videoFrames[_nextVideoFrame-2]->timestamp;
}
FLVFrame* FLVParser::nextMediaFrame()