]> granicus.if.org Git - libx264/commitdiff
Fix missing bs_flush in AUD writing
authorAnton Mitrofanov <BugMaster@narod.ru>
Sun, 1 Apr 2018 17:49:29 +0000 (20:49 +0300)
committerHenrik Gramner <henrik@gramner.com>
Sun, 27 May 2018 18:58:54 +0000 (20:58 +0200)
encoder/encoder.c

index 16722f9b03aaf1b6102160ad1cc69c266fff7e53..243a87a59f7378aefbe124b1972d31e3d65df7e2 100644 (file)
@@ -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;