[x264-devel] Fix missing bs_flush in AUD writing

Anton Mitrofanov git at videolan.org
Tue Aug 7 00:05:19 CEST 2018


x264 | branch: master | Anton Mitrofanov <BugMaster at narod.ru> | Sun Apr  1 20:49:29 2018 +0300| [26b99cce1f03f023dee98bef2ec3cd2eff319f8e] | committer: Henrik Gramner

Fix missing bs_flush in AUD writing

> http://git.videolan.org/gitweb.cgi/x264.git/?a=commit;h=26b99cce1f03f023dee98bef2ec3cd2eff319f8e
---

 encoder/encoder.c | 1 +
 1 file changed, 1 insertion(+)

diff --git a/encoder/encoder.c b/encoder/encoder.c
index 16722f9b..243a87a5 100644
--- a/encoder/encoder.c
+++ b/encoder/encoder.c
@@ -3499,6 +3499,7 @@ int     x264_encoder_encode( x264_t *h,
         nal_start( h, NAL_AUD, NAL_PRIORITY_DISPOSABLE );
         bs_write( &h->out.bs, 3, pic_type );
         bs_rbsp_trailing( &h->out.bs );
+        bs_flush( &h->out.bs );
         if( nal_end( h ) )
             return -1;
         overhead += h->out.nal[h->out.i_nal-1].i_payload + NALU_OVERHEAD;



More information about the x264-devel mailing list