projects
/
platform
/
upstream
/
libav.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
5e8782d
)
Dead code removal, fixes CID59 RUN2.
author
Michael Niedermayer
<michaelni@gmx.at>
Wed, 28 May 2008 21:22:08 +0000
(21:22 +0000)
committer
Michael Niedermayer
<michaelni@gmx.at>
Wed, 28 May 2008 21:22:08 +0000
(21:22 +0000)
Originally committed as revision 13509 to svn://svn.ffmpeg.org/ffmpeg/trunk
libavformat/matroskadec.c
patch
|
blob
|
history
diff --git
a/libavformat/matroskadec.c
b/libavformat/matroskadec.c
index
6f6caa1
..
f080bd1
100644
(file)
--- a/
libavformat/matroskadec.c
+++ b/
libavformat/matroskadec.c
@@
-2758,10
+2758,7
@@
matroska_parse_block(MatroskaDemuxContext *matroska, uint8_t *data, int size,
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;