Message ID | 20201026134159.24101-1-anton@khirnov.net |
---|---|
State | Accepted |
Commit | 2068ad5914e4b6ba1d9c57e093a0d879d7afc7cf |
Headers | show |
Series | [FFmpeg-devel,1/6] lavf/latmenc: fix units mismatch | expand |
Context | Check | Description |
---|---|---|
andriy/x86_make | success | Make finished |
andriy/x86_make_fate | success | Make fate finished |
diff --git a/libavformat/latmenc.c b/libavformat/latmenc.c index 5458ce2596..684483bc71 100644 --- a/libavformat/latmenc.c +++ b/libavformat/latmenc.c @@ -120,7 +120,7 @@ static void latm_write_frame_header(AVFormatContext *s, PutBitContext *bs) /* AudioSpecificConfig */ if (ctx->object_type == AOT_ALS) { - header_size = par->extradata_size-(ctx->off >> 3); + header_size = (par->extradata_size - (ctx->off >> 3)) * 8; avpriv_copy_bits(bs, &par->extradata[ctx->off >> 3], header_size); } else { // + 3 assumes not scalable and dependsOnCoreCoder == 0,