1
0
mirror of https://github.com/FFmpeg/FFmpeg.git synced 2024-12-23 12:43:46 +02:00

avcodec/tta: use init_get_bits8()

Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
This commit is contained in:
Michael Niedermayer 2013-08-05 10:15:03 +02:00
parent 89c3f5a907
commit 22458ccbcc

View File

@ -160,7 +160,7 @@ static av_cold int tta_decode_init(AVCodecContext * avctx)
return AVERROR_INVALIDDATA; return AVERROR_INVALIDDATA;
s->crc_table = av_crc_get_table(AV_CRC_32_IEEE_LE); s->crc_table = av_crc_get_table(AV_CRC_32_IEEE_LE);
init_get_bits(&gb, avctx->extradata, avctx->extradata_size * 8); init_get_bits8(&gb, avctx->extradata, avctx->extradata_size);
if (show_bits_long(&gb, 32) == AV_RL32("TTA1")) { if (show_bits_long(&gb, 32) == AV_RL32("TTA1")) {
/* signature */ /* signature */
skip_bits_long(&gb, 32); skip_bits_long(&gb, 32);