summaryrefslogtreecommitdiff
path: root/libavcodec/adpcm.c
diff options
context:
space:
mode:
authorMartin Storsjö <martin@martin.st>2010-08-26 07:39:34 +0000
committerMartin Storsjö <martin@martin.st>2010-08-26 07:39:34 +0000
commite0ae6c17fea47a4e42ed8d8d9b08ff25ebab9197 (patch)
treedf27ddc8c3788b46c105ebf575f0b359d4a793e9 /libavcodec/adpcm.c
parent798dc641c408dfc3706d8c0b95269a2c4e2e444a (diff)
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
Diffstat (limited to 'libavcodec/adpcm.c')
-rw-r--r--libavcodec/adpcm.c1
1 files changed, 1 insertions, 0 deletions
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;
}