diff options
author | Laurent Aimar <fenrir@videolan.org> | 2011-09-09 23:46:00 +0200 |
---|---|---|
committer | Michael Niedermayer <michaelni@gmx.at> | 2011-09-10 00:26:48 +0200 |
commit | e5e0580b93a5bda34f62a5df50c1b15e610d4ad1 (patch) | |
tree | 11e0afba761fa3e452b0b778a4df0270e3932319 /libavcodec/rv34.c | |
parent | 8362a0ffed0b15a9977fcde947bcb49dfc06638b (diff) | |
download | ffmpeg-e5e0580b93a5bda34f62a5df50c1b15e610d4ad1.tar.gz |
Fixed size given to init_get_bits().
init_get_bits() takes a number of bits and not a number of bytes as
its size argument.
Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
Diffstat (limited to 'libavcodec/rv34.c')
-rw-r--r-- | libavcodec/rv34.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/libavcodec/rv34.c b/libavcodec/rv34.c index d1df3461cc..2af66a57f8 100644 --- a/libavcodec/rv34.c +++ b/libavcodec/rv34.c @@ -1484,7 +1484,7 @@ int ff_rv34_decode_frame(AVCodecContext *avctx, av_log(avctx, AV_LOG_ERROR, "Slice offset is greater than frame size\n"); return -1; } - init_get_bits(&s->gb, buf+get_slice_offset(avctx, slices_hdr, 0), buf_size-get_slice_offset(avctx, slices_hdr, 0)); + init_get_bits(&s->gb, buf+get_slice_offset(avctx, slices_hdr, 0), (buf_size-get_slice_offset(avctx, slices_hdr, 0))*8); if(r->parse_slice_header(r, &r->s.gb, &si) < 0 || si.start){ av_log(avctx, AV_LOG_ERROR, "First slice header is incorrect\n"); return -1; |