summaryrefslogtreecommitdiff
path: root/libavcodec/wmaenc.c
diff options
context:
space:
mode:
authorMichael Niedermayer <michaelni@gmx.at>2012-03-05 07:27:42 +0100
committerMichael Niedermayer <michaelni@gmx.at>2012-03-05 19:00:22 +0100
commit0d92e5a6828af367193eb114aec3b07983cb4f96 (patch)
tree034f0ebb9cb8bad4020b59fd5a4e4a974999e3f5 /libavcodec/wmaenc.c
parentc99bd29462e1735ff85980e57ee57e55d1cc6745 (diff)
wmaenc: add assert to check encode_superframe() return.
Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
Diffstat (limited to 'libavcodec/wmaenc.c')
-rw-r--r--libavcodec/wmaenc.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/libavcodec/wmaenc.c b/libavcodec/wmaenc.c
index c15df65ba8..2eb46cfad7 100644
--- a/libavcodec/wmaenc.c
+++ b/libavcodec/wmaenc.c
@@ -21,6 +21,7 @@
#include "avcodec.h"
#include "wma.h"
+#include "libavutil/avassert.h"
#undef NDEBUG
#include <assert.h>
@@ -404,6 +405,7 @@ static int encode_superframe(AVCodecContext *avctx,
put_bits(&s->pb, 8, 'N');
flush_put_bits(&s->pb);
+ av_assert0(put_bits_ptr(&s->pb) - s->pb.buf == s->block_align);
return s->block_align;
}