summaryrefslogtreecommitdiff
path: root/libavcodec
diff options
context:
space:
mode:
Diffstat (limited to 'libavcodec')
-rw-r--r--libavcodec/wavpack.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/libavcodec/wavpack.c b/libavcodec/wavpack.c
index 779fe80e3e..f78492c924 100644
--- a/libavcodec/wavpack.c
+++ b/libavcodec/wavpack.c
@@ -630,7 +630,7 @@ static inline int wv_unpack_mono(WavpackContext *s, GetBitContext *gb, void *dst
else
*dst16++ = wv_get_value_integer(s, &crc_extra_bits, S);
count++;
- }while(!last && count < s->samples);
+ }while(!last && count < s->max_samples);
s->samples_left -= count;
if(!s->samples_left){