Flush the PutBitsContext at the end of each block when encoding ADPCM IMA QT
authorMartin Storsjö <martin@martin.st>
Thu, 26 Aug 2010 07:39:34 +0000 (07:39 +0000)
committerMartin Storsjö <martin@martin.st>
Thu, 26 Aug 2010 07:39:34 +0000 (07:39 +0000)
Originally committed as revision 24938 to svn://svn.ffmpeg.org/ffmpeg/trunk

libavcodec/adpcm.c

index dbb57e5..455b477 100644 (file)
@@ -578,6 +578,7 @@ static int adpcm_encode_frame(AVCodecContext *avctx,
             }
         }
 
+        flush_put_bits(&pb);
         dst += put_bits_count(&pb)>>3;
         break;
     }