mirror of
https://git.ffmpeg.org/ffmpeg.git
synced 2025-02-18 21:07:01 +00:00
flacdec: use init_get_bits8()
Signed-off-by: Paul B Mahol <onemda@gmail.com>
This commit is contained in:
parent
e4bf3a97de
commit
b4d4ef5529
@ -529,7 +529,8 @@ static int flac_decode_frame(AVCodecContext *avctx, void *data,
|
|||||||
}
|
}
|
||||||
|
|
||||||
/* decode frame */
|
/* decode frame */
|
||||||
init_get_bits(&s->gb, buf, buf_size*8);
|
if ((ret = init_get_bits8(&s->gb, buf, buf_size)) < 0)
|
||||||
|
return ret;
|
||||||
if ((ret = decode_frame(s)) < 0) {
|
if ((ret = decode_frame(s)) < 0) {
|
||||||
av_log(s->avctx, AV_LOG_ERROR, "decode_frame() failed\n");
|
av_log(s->avctx, AV_LOG_ERROR, "decode_frame() failed\n");
|
||||||
return ret;
|
return ret;
|
||||||
|
Loading…
Reference in New Issue
Block a user