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
This commit is contained in:
Martin Storsjö 2010-08-26 07:39:34 +00:00
parent 798dc641c4
commit e0ae6c17fe

View File

@ -578,6 +578,7 @@ static int adpcm_encode_frame(AVCodecContext *avctx,
}
}
flush_put_bits(&pb);
dst += put_bits_count(&pb)>>3;
break;
}