summaryrefslogtreecommitdiff
path: root/libavcodec/avs.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/avs.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/avs.c')
-rw-r--r--libavcodec/avs.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/libavcodec/avs.c b/libavcodec/avs.c
index 12fb3976d5..8221b7b766 100644
--- a/libavcodec/avs.c
+++ b/libavcodec/avs.c
@@ -117,7 +117,7 @@ avs_decode_frame(AVCodecContext * avctx,
table = buf + (256 * vect_w * vect_h);
if (sub_type != AVS_I_FRAME) {
int map_size = ((318 / vect_w + 7) / 8) * (198 / vect_h);
- init_get_bits(&change_map, table, map_size);
+ init_get_bits(&change_map, table, map_size * 8);
table += map_size;
}