mirror of
https://git.ffmpeg.org/ffmpeg.git
synced 2025-01-04 14:22:12 +00:00
lavf/latmenc: fix units mismatch
avpriv_copy_bits() takes the size in bits, not bytes. According to
a736eb4a60
, nobody is quite sure whether
this code produces working files.
This commit is contained in:
parent
c1efb1decb
commit
2068ad5914
@ -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,
|
||||
|
Loading…
Reference in New Issue
Block a user