[FFmpeg-cvslog] r13509 - trunk/libavformat/matroskadec.c
michael
subversion
Wed May 28 23:22:08 CEST 2008
Author: michael
Date: Wed May 28 23:22:08 2008
New Revision: 13509
Log:
Dead code removial, fixes CID59 RUN2.
Modified:
trunk/libavformat/matroskadec.c
Modified: trunk/libavformat/matroskadec.c
==============================================================================
--- trunk/libavformat/matroskadec.c (original)
+++ trunk/libavformat/matroskadec.c Wed May 28 23:22:08 2008
@@ -2758,10 +2758,7 @@ matroska_parse_block(MatroskaDemuxContex
case 0x1: /* xiph lacing */
case 0x2: /* fixed-size lacing */
case 0x3: /* EBML lacing */
- if (size == 0) {
- res = -1;
- break;
- }
+ assert(size>0); // size <=3 is checked before size-=3 above
laces = (*data) + 1;
data += 1;
size -= 1;
More information about the ffmpeg-cvslog
mailing list