Mercurial > libavcodec.hg
changeset 9741:e52891e48ceb libavcodec
remove cast and use put_sbits, fix assertion in put_bits
author | bcoudurier |
---|---|
date | Sun, 31 May 2009 06:33:58 +0000 |
parents | 30b00f4bdeb1 |
children | 0d6f887d91fb |
files | dv.c |
diffstat | 1 files changed, 1 insertions(+), 1 deletions(-) [+] |
line wrap: on
line diff
--- a/dv.c Sun May 31 04:26:22 2009 +0000 +++ b/dv.c Sun May 31 06:33:58 2009 +0000 @@ -1077,7 +1077,7 @@ int sz = s->sys->block_sizes[i]>>3; init_put_bits(&pbs[j], dif, sz); - put_bits(&pbs[j], 9, (uint16_t)(((enc_blks[j].mb[0] >> 3) - 1024 + 2) >> 2)); + put_sbits(&pbs[j], 9, ((enc_blks[j].mb[0] >> 3) - 1024 + 2) >> 2); put_bits(&pbs[j], 1, enc_blks[j].dct_mode); put_bits(&pbs[j], 2, enc_blks[j].cno);