Commit 77e37c34 authored by Michael Niedermayer's avatar Michael Niedermayer

avformat/latmenc: use init_get_bits8()

Signed-off-by: 's avatarMichael Niedermayer <michaelni@gmx.at>
parent dd98d9d1
...@@ -124,7 +124,7 @@ static void latm_write_frame_header(AVFormatContext *s, PutBitContext *bs) ...@@ -124,7 +124,7 @@ static void latm_write_frame_header(AVFormatContext *s, PutBitContext *bs)
if (!ctx->channel_conf) { if (!ctx->channel_conf) {
GetBitContext gb; GetBitContext gb;
init_get_bits(&gb, avctx->extradata, avctx->extradata_size * 8); init_get_bits8(&gb, avctx->extradata, avctx->extradata_size);
skip_bits_long(&gb, ctx->off + 3); skip_bits_long(&gb, ctx->off + 3);
avpriv_copy_pce_data(bs, &gb); avpriv_copy_pce_data(bs, &gb);
} }
......
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