aboutsummaryrefslogtreecommitdiffstats
path: root/libavcodec/avs.c
diff options
context:
space:
mode:
authorLaurent Aimar <fenrir@videolan.org>2011-09-09 23:46:00 +0200
committerMichael Niedermayer <michaelni@gmx.at>2011-09-10 00:26:48 +0200
commite5e0580b93a5bda34f62a5df50c1b15e610d4ad1 (patch)
tree11e0afba761fa3e452b0b778a4df0270e3932319 /libavcodec/avs.c
parent8362a0ffed0b15a9977fcde947bcb49dfc06638b (diff)
downloadffmpeg-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/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 14f7cf0507..b3c71bb34b 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;
}