Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/FFmpeg/FFmpeg.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAnton Khirnov <anton@khirnov.net>2020-10-26 15:04:33 +0300
committerAnton Khirnov <anton@khirnov.net>2020-10-28 15:53:23 +0300
commit2068ad5914e4b6ba1d9c57e093a0d879d7afc7cf (patch)
tree170825a02b3bc8527b977c10e1bb2605e749f6cb
parentc1efb1decb01af84d466a3f740c06c56c446ce56 (diff)
lavf/latmenc: fix units mismatch
avpriv_copy_bits() takes the size in bits, not bytes. According to a736eb4a605f46d5ff96c7b32e55710ecd9cce89, nobody is quite sure whether this code produces working files.
-rw-r--r--libavformat/latmenc.c2
1 files changed, 1 insertions, 1 deletions
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,