aboutsummaryrefslogtreecommitdiffstats
path: root/libavformat/movenc.c
diff options
context:
space:
mode:
authorPaul B Mahol <onemda@gmail.com>2018-11-22 21:28:59 +0100
committerPaul B Mahol <onemda@gmail.com>2018-11-26 15:36:12 +0100
commit59e30c05d74e59d28f2ec4ffd4dbf1822f921f06 (patch)
tree403385284751e4e866074e74556617ea271ad7cb /libavformat/movenc.c
parentfcffed470a5236bc1799bc3022d588704d9ae5ef (diff)
downloadffmpeg-59e30c05d74e59d28f2ec4ffd4dbf1822f921f06.tar.gz
avformat/movenc: get number of written bytes from bitstream writer
Update fate test. (cherry picked from commit 97d1ee437bbf67d7e3897bc73df4f7d9771ac309)
Diffstat (limited to 'libavformat/movenc.c')
-rw-r--r--libavformat/movenc.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/libavformat/movenc.c b/libavformat/movenc.c
index bee8e89760..6dab5193b0 100644
--- a/libavformat/movenc.c
+++ b/libavformat/movenc.c
@@ -563,12 +563,12 @@ static int mov_write_eac3_tag(AVIOContext *pb, MOVTrack *track)
put_bits(&pbc, 4, info->substream[i].num_dep_sub);
if (!info->substream[i].num_dep_sub) {
put_bits(&pbc, 1, 0); /* reserved */
- size--;
} else {
put_bits(&pbc, 9, info->substream[i].chan_loc);
}
}
flush_put_bits(&pbc);
+ size = put_bits_count(&pbc) >> 3;
avio_wb32(pb, size + 8);
ffio_wfourcc(pb, "dec3");