diff options
author | Baptiste Coudurier <baptiste.coudurier@gmail.com> | 2009-05-31 06:33:58 +0000 |
---|---|---|
committer | Baptiste Coudurier <baptiste.coudurier@gmail.com> | 2009-05-31 06:33:58 +0000 |
commit | b8df8d0d1c6b9b5f284319de4965276f6087e7cf (patch) | |
tree | fc0a0cc3da350e57d29c87ff80b01024d52bcf7e /libavcodec | |
parent | 15c315b7f1f6a4ce281e42b9222c14bdb2399371 (diff) | |
download | ffmpeg-streaming-b8df8d0d1c6b9b5f284319de4965276f6087e7cf.zip ffmpeg-streaming-b8df8d0d1c6b9b5f284319de4965276f6087e7cf.tar.gz |
remove cast and use put_sbits, fix assertion in put_bits
Originally committed as revision 19024 to svn://svn.ffmpeg.org/ffmpeg/trunk
Diffstat (limited to 'libavcodec')
-rw-r--r-- | libavcodec/dv.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/libavcodec/dv.c b/libavcodec/dv.c index 774b0a7..d479298 100644 --- a/libavcodec/dv.c +++ b/libavcodec/dv.c @@ -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); |