Mercurial > libavformat.hg
changeset 3391:39750abd9bab libavformat
Dead code removal, fixes CID59 RUN2.
author | michael |
---|---|
date | Wed, 28 May 2008 21:22:08 +0000 |
parents | 771ab1d4fd6e |
children | 4b7dccbc0d81 |
files | matroskadec.c |
diffstat | 1 files changed, 1 insertions(+), 4 deletions(-) [+] |
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;