Mercurial > libavcodec.hg
diff wmv2.c @ 1025:1f9afd8b9131 libavcodec
GetBitContext.size is allways multiplied by 8 -> use size_in_bits to avoid useless *8 in a few inner loops
author | michaelni |
---|---|
date | Tue, 21 Jan 2003 17:34:12 +0000 |
parents | ca2a303ea039 |
children | 747790b270cf |
line wrap: on
line diff
--- a/wmv2.c Mon Jan 20 22:50:14 2003 +0000 +++ b/wmv2.c Tue Jan 21 17:34:12 2003 +0000 @@ -313,7 +313,7 @@ if(s->avctx->extradata_size<4) return -1; - init_get_bits(&gb, s->avctx->extradata, s->avctx->extradata_size); + init_get_bits(&gb, s->avctx->extradata, s->avctx->extradata_size*8); fps = get_bits(&gb, 5); s->bit_rate = get_bits(&gb, 11)*1024;