diff options
author | Paul B Mahol <onemda@gmail.com> | 2012-09-30 14:05:04 +0000 |
---|---|---|
committer | Paul B Mahol <onemda@gmail.com> | 2012-09-30 14:05:04 +0000 |
commit | 3fa100244fb95ae3730e67d0b05bdc328a1d0a7b (patch) | |
tree | abfa44912417f9a300bacd03422b146cb98910a0 /libavcodec | |
parent | 01c9ffa9134bec2a9b97c39a7b59aa0d0d5683b9 (diff) | |
download | ffmpeg-3fa100244fb95ae3730e67d0b05bdc328a1d0a7b.tar.gz |
flac: use get_bits_longlong()
Signed-off-by: Paul B Mahol <onemda@gmail.com>
Diffstat (limited to 'libavcodec')
-rw-r--r-- | libavcodec/flac.c | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/libavcodec/flac.c b/libavcodec/flac.c index a1ae718992..b07e4f8705 100644 --- a/libavcodec/flac.c +++ b/libavcodec/flac.c @@ -206,8 +206,7 @@ void avpriv_flac_parse_streaminfo(AVCodecContext *avctx, struct FLACStreaminfo * avctx->sample_rate = s->samplerate; avctx->bits_per_raw_sample = s->bps; - s->samples = get_bits_long(&gb, 32) << 4; - s->samples |= get_bits(&gb, 4); + s->samples = get_bits_longlong(&gb, 36); skip_bits_long(&gb, 64); /* md5 sum */ skip_bits_long(&gb, 64); /* md5 sum */ |