Commit c392cc0a authored by Kostya Shishkov's avatar Kostya Shishkov

Limit number of samples decoded for WavPack mono mode, so decoded samples will

fit into output buffer.

Originally committed as revision 26269 to svn://svn.ffmpeg.org/ffmpeg/trunk
parent 15a8bef0
......@@ -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){
......
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