summaryrefslogtreecommitdiff
path: root/libavcodec/rv34.c
diff options
context:
space:
mode:
authorLaurent Aimar <fenrir@videolan.org>2011-09-09 23:46:00 +0200
committerAlex Converse <alex.converse@gmail.com>2011-09-15 13:23:04 -0700
commitb59efc94347ccf0cbc2ff14a5a9e99819c5bdc4d (patch)
tree5b47b992b373e740509222dae25d471c180c0115 /libavcodec/rv34.c
parentea540401d6082474df8364169e2041e29e4dc407 (diff)
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: Alex Converse <alex.converse@gmail.com>
Diffstat (limited to 'libavcodec/rv34.c')
-rw-r--r--libavcodec/rv34.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/libavcodec/rv34.c b/libavcodec/rv34.c
index 80c88fb102..90ff51d8f2 100644
--- a/libavcodec/rv34.c
+++ b/libavcodec/rv34.c
@@ -1491,7 +1491,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;