Commit e32eddaa authored by Christophe Gisquet's avatar Christophe Gisquet Committed by Michael Niedermayer

wavpackenc: make assert more thorough

It was only validating that normal data wasn't filling the buffer.
However, extra data may be written afterwards.
Signed-off-by: 's avatarMichael Niedermayer <michaelni@gmx.at>
parent ddad0939
......@@ -2813,7 +2813,7 @@ static int wavpack_encode_block(WavPackEncodeContext *s,
block_size = bytestream2_tell_p(&pb);
AV_WL32(out + 4, block_size - 8);
av_assert0(put_bits_left(&s->pb) > 0);
av_assert0(!bytestream2_get_eof(&pb));
return block_size;
}
......
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