]> git.sesse.net Git - ffmpeg/commitdiff
avformat/movenc: get number of written bytes from bitstream writer
authorPaul B Mahol <onemda@gmail.com>
Thu, 22 Nov 2018 20:28:59 +0000 (21:28 +0100)
committerPaul B Mahol <onemda@gmail.com>
Thu, 22 Nov 2018 20:32:41 +0000 (21:32 +0100)
Update fate test.

libavformat/movenc.c
tests/ref/fate/copy-trac3074

index bee8e89760adc48093029e1762bcecdfa5642853..6dab5193b044e11d8275261f373134d060795f29 100644 (file)
@@ -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");
index 5ce56942604a1ae443c890676644b10087d51f08..ff66900253f88f8e8f7b5bbbae6610940524c564 100644 (file)
@@ -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