mirror of
https://git.ffmpeg.org/ffmpeg.git
synced 2024-12-20 06:20:40 +00:00
remove cast and use put_sbits, fix assertion in put_bits
Originally committed as revision 19024 to svn://svn.ffmpeg.org/ffmpeg/trunk
This commit is contained in:
parent
15c315b7f1
commit
b8df8d0d1c
@ -1077,7 +1077,7 @@ static int dv_encode_video_segment(AVCodecContext *avctx, void *arg)
|
||||
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);
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user