[FFmpeg-cvslog] avformat/movenc: get number of written bytes from bitstream writer
Paul B Mahol
git at videolan.org
Mon Nov 26 16:38:57 EET 2018
ffmpeg | branch: release/4.1 | Paul B Mahol <onemda at gmail.com> | Thu Nov 22 21:28:59 2018 +0100| [59e30c05d74e59d28f2ec4ffd4dbf1822f921f06] | committer: Paul B Mahol
avformat/movenc: get number of written bytes from bitstream writer
Update fate test.
(cherry picked from commit 97d1ee437bbf67d7e3897bc73df4f7d9771ac309)
> http://git.videolan.org/gitweb.cgi/ffmpeg.git/?a=commit;h=59e30c05d74e59d28f2ec4ffd4dbf1822f921f06
---
libavformat/movenc.c | 2 +-
tests/ref/fate/copy-trac3074 | 4 ++--
2 files changed, 3 insertions(+), 3 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");
diff --git a/tests/ref/fate/copy-trac3074 b/tests/ref/fate/copy-trac3074
index 5ce5694260..ff66900253 100644
--- a/tests/ref/fate/copy-trac3074
+++ b/tests/ref/fate/copy-trac3074
@@ -1,5 +1,5 @@
-39aef1afff761d673fd1be07182941d1 *tests/data/fate/copy-trac3074.mp4
-333991 tests/data/fate/copy-trac3074.mp4
+f92a201033712bda262f1e071e25544a *tests/data/fate/copy-trac3074.mp4
+333992 tests/data/fate/copy-trac3074.mp4
#tb 0: 1/48000
#media_type 0: audio
#codec_id 0: eac3
More information about the ffmpeg-cvslog
mailing list