[FFmpeg-devel] [PATCH 05/16] vmdaudio: output audio samples for standalone silent blocks.

Ronald S. Bultje rsbultje
Thu Feb 24 03:05:06 CET 2011


Hi,

On Wed, Feb 23, 2011 at 1:58 PM, Kostya <kostya.shishkov at gmail.com> wrote:
> On Wed, Feb 23, 2011 at 01:11:02PM -0500, Justin Ruggles wrote:
>> ---
>> ?libavcodec/vmdav.c ? ? ? ?| ? ?2 +-
>> ?tests/ref/fate/sierra-vmd | ? 29 +++++++++++++++++++++++++++++
>> ?2 files changed, 30 insertions(+), 1 deletions(-)
>>
>
>> diff --git a/libavcodec/vmdav.c b/libavcodec/vmdav.c
>> index cd393f3..025d23a 100644
>> --- a/libavcodec/vmdav.c
>> +++ b/libavcodec/vmdav.c
>> @@ -531,7 +531,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;
>
> ok

Queued.

Ronald



More information about the ffmpeg-devel mailing list