Skip to content
Snippets Groups Projects
Commit b4d4ef55 authored by Paul B Mahol's avatar Paul B Mahol
Browse files

flacdec: use init_get_bits8()


Signed-off-by: default avatarPaul B Mahol <onemda@gmail.com>
parent e4bf3a97
No related branches found
No related tags found
No related merge requests found
......@@ -529,7 +529,8 @@ static int flac_decode_frame(AVCodecContext *avctx, void *data,
}
/* 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) {
av_log(s->avctx, AV_LOG_ERROR, "decode_frame() failed\n");
return ret;
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment