summaryrefslogtreecommitdiff
path: root/libavcodec/wavpackenc.c
diff options
context:
space:
mode:
Diffstat (limited to 'libavcodec/wavpackenc.c')
-rw-r--r--libavcodec/wavpackenc.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/libavcodec/wavpackenc.c b/libavcodec/wavpackenc.c
index 169836a754..299a035fc5 100644
--- a/libavcodec/wavpackenc.c
+++ b/libavcodec/wavpackenc.c
@@ -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;
}