From e0ae6c17fea47a4e42ed8d8d9b08ff25ebab9197 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Martin=20Storsj=C3=B6?= Date: Thu, 26 Aug 2010 07:39:34 +0000 Subject: [PATCH] Flush the PutBitsContext at the end of each block when encoding ADPCM IMA QT Originally committed as revision 24938 to svn://svn.ffmpeg.org/ffmpeg/trunk --- libavcodec/adpcm.c | 1 + 1 file changed, 1 insertion(+) diff --git a/libavcodec/adpcm.c b/libavcodec/adpcm.c index dbb57e5bf2..455b477332 100644 --- a/libavcodec/adpcm.c +++ b/libavcodec/adpcm.c @@ -578,6 +578,7 @@ static int adpcm_encode_frame(AVCodecContext *avctx, } } + flush_put_bits(&pb); dst += put_bits_count(&pb)>>3; break; }