diff --git a/src/add-ons/media/plugins/ffmpeg/libavcodec/alsdec.c b/src/add-ons/media/plugins/ffmpeg/libavcodec/alsdec.c index 2058a85384..4006a1ace6 100644 --- a/src/add-ons/media/plugins/ffmpeg/libavcodec/alsdec.c +++ b/src/add-ons/media/plugins/ffmpeg/libavcodec/alsdec.c @@ -992,7 +992,7 @@ static void zero_remaining(unsigned int b, unsigned int b_max, unsigned int count = 0; while (b < b_max) - count += div_blocks[b]; + count += div_blocks[b++]; if (count) memset(buf, 0, sizeof(*buf) * count);