Mercurial > libavformat.hg
diff matroskadec.c @ 3391:39750abd9bab libavformat
Dead code removal, fixes CID59 RUN2.
author | michael |
---|---|
date | Wed, 28 May 2008 21:22:08 +0000 |
parents | 7a823a401282 |
children | ffd297928ed8 |
line wrap: on
line diff
--- a/matroskadec.c Wed May 28 21:14:10 2008 +0000 +++ b/matroskadec.c Wed May 28 21:22:08 2008 +0000 @@ -2758,10 +2758,7 @@ 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;