Commit 0d92e5a6 authored by Michael Niedermayer's avatar Michael Niedermayer

wmaenc: add assert to check encode_superframe() return.

Signed-off-by: 's avatarMichael Niedermayer <michaelni@gmx.at>
parent c99bd294
......@@ -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;
}
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment