diff options
author | Laurent Aimar <fenrir@videolan.org> | 2011-09-09 23:46:00 +0200 |
---|---|---|
committer | Anton Khirnov <anton@khirnov.net> | 2011-09-21 14:28:31 +0200 |
commit | 6ddb12b6889dd13c3bb514838c71d2f70114b3c1 (patch) | |
tree | f5f9501829c3d458243ceab07aa8f57ac1703d18 /libavcodec/tta.c | |
parent | c34968c6d49496d318591f1b4492fdd9c143aaeb (diff) | |
download | ffmpeg-6ddb12b6889dd13c3bb514838c71d2f70114b3c1.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: Alex Converse <alex.converse@gmail.com>
(cherry picked from commit b59efc94347ccf0cbc2ff14a5a9e99819c5bdc4d)
Signed-off-by: Anton Khirnov <anton@khirnov.net>
Diffstat (limited to 'libavcodec/tta.c')
-rw-r--r-- | libavcodec/tta.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/libavcodec/tta.c b/libavcodec/tta.c index 57f5818d7b..fd5aa46670 100644 --- a/libavcodec/tta.c +++ b/libavcodec/tta.c @@ -216,7 +216,7 @@ static av_cold int tta_decode_init(AVCodecContext * avctx) if (avctx->extradata_size < 30) return -1; - init_get_bits(&s->gb, avctx->extradata, avctx->extradata_size); + init_get_bits(&s->gb, avctx->extradata, avctx->extradata_size * 8); if (show_bits_long(&s->gb, 32) == AV_RL32("TTA1")) { /* signature */ |