OSDN Git Service

nellymoserenc: flush PutBitContext after use.
authorRamiro Polla <ramiro.polla@gmail.com>
Sat, 11 Oct 2008 14:52:00 +0000 (14:52 +0000)
committerRamiro Polla <ramiro.polla@gmail.com>
Sat, 11 Oct 2008 14:52:00 +0000 (14:52 +0000)
Originally committed as revision 15596 to svn://svn.ffmpeg.org/ffmpeg/trunk

libavcodec/nellymoserenc.c

index e1fc6f0..03db30c 100644 (file)
@@ -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)