From f2e5786771e6ce989efc7b9136c73343e354c0b0 Mon Sep 17 00:00:00 2001
From: Ramiro Polla <ramiro.polla@gmail.com>
Date: Sat, 11 Oct 2008 14:52:00 +0000
Subject: [PATCH] nellymoserenc: flush PutBitContext after use.

Originally committed as revision 15596 to svn://svn.ffmpeg.org/ffmpeg/trunk
---
 libavcodec/nellymoserenc.c | 2 ++
 1 file changed, 2 insertions(+)

diff --git a/libavcodec/nellymoserenc.c b/libavcodec/nellymoserenc.c
index e1fc6f02ba9..03db30c109d 100644
--- a/libavcodec/nellymoserenc.c
+++ b/libavcodec/nellymoserenc.c
@@ -331,6 +331,8 @@ static void encode_block(NellyMoserEncodeContext *s, unsigned char *output, int
         if (!block)
             put_bits(&pb, NELLY_HEADER_BITS + NELLY_DETAIL_BITS - put_bits_count(&pb), 0);
     }
+
+    flush_put_bits(&pb);
 }
 
 static int encode_frame(AVCodecContext *avctx, uint8_t *frame, int buf_size, void *data)
-- 
GitLab