aboutsummaryrefslogtreecommitdiffstats
path: root/libavcodec/vmdav.c
diff options
context:
space:
mode:
authorJustin Ruggles <justin.ruggles@gmail.com>2011-02-23 13:11:02 -0500
committerMichael Niedermayer <michaelni@gmx.at>2011-02-26 03:16:02 +0100
commitc11c79222e2d8d1799e768b156808cae90c8d692 (patch)
treeb850c8059cc9063d840a31626fc0bd0460f6d395 /libavcodec/vmdav.c
parent2ac19b75c0d25f15d33a4f7905be50c7ebbd67fe (diff)
downloadffmpeg-c11c79222e2d8d1799e768b156808cae90c8d692.tar.gz
vmdaudio: output audio samples for standalone silent blocks.
Signed-off-by: Ronald S. Bultje <rsbultje@gmail.com> (cherry picked from commit 9b73f786005f31429d7c88092edfeef6696a5f69)
Diffstat (limited to 'libavcodec/vmdav.c')
-rw-r--r--libavcodec/vmdav.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/libavcodec/vmdav.c b/libavcodec/vmdav.c
index cbe530dbb4..c6043e94d2 100644
--- a/libavcodec/vmdav.c
+++ b/libavcodec/vmdav.c
@@ -534,7 +534,7 @@ static int vmdaudio_decode_frame(AVCodecContext *avctx,
*data_size += vmdaudio_loadsound(s, output_samples, p + 4, 0, buf_size - 20);
} else if (buf[6] == 3) {
/* silent chunk */
- *data_size = vmdaudio_loadsound(s, output_samples, p, 1, 0);
+ *data_size = vmdaudio_loadsound(s, output_samples, p, 1, s->block_align);
}
return buf_size;