Commit 3fa10024 authored by Paul B Mahol's avatar Paul B Mahol

flac: use get_bits_longlong()

Signed-off-by: 's avatarPaul B Mahol <onemda@gmail.com>
parent 01c9ffa9
...@@ -206,8 +206,7 @@ void avpriv_flac_parse_streaminfo(AVCodecContext *avctx, struct FLACStreaminfo * ...@@ -206,8 +206,7 @@ void avpriv_flac_parse_streaminfo(AVCodecContext *avctx, struct FLACStreaminfo *
avctx->sample_rate = s->samplerate; avctx->sample_rate = s->samplerate;
avctx->bits_per_raw_sample = s->bps; avctx->bits_per_raw_sample = s->bps;
s->samples = get_bits_long(&gb, 32) << 4; s->samples = get_bits_longlong(&gb, 36);
s->samples |= get_bits(&gb, 4);
skip_bits_long(&gb, 64); /* md5 sum */ skip_bits_long(&gb, 64); /* md5 sum */
skip_bits_long(&gb, 64); /* md5 sum */ skip_bits_long(&gb, 64); /* md5 sum */
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment