summaryrefslogtreecommitdiff
path: root/libavformat/latmenc.c
diff options
context:
space:
mode:
Diffstat (limited to 'libavformat/latmenc.c')
-rw-r--r--libavformat/latmenc.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/libavformat/latmenc.c b/libavformat/latmenc.c
index 9dfb4e4fab..b3430d785d 100644
--- a/libavformat/latmenc.c
+++ b/libavformat/latmenc.c
@@ -124,7 +124,7 @@ static void latm_write_frame_header(AVFormatContext *s, PutBitContext *bs)
if (!ctx->channel_conf) {
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);
avpriv_copy_pce_data(bs, &gb);
}