Revision c11c7922

View differences:

libavcodec/vmdav.c
534 534
        *data_size += vmdaudio_loadsound(s, output_samples, p + 4, 0, buf_size - 20);
535 535
    } else if (buf[6] == 3) {
536 536
        /* silent chunk */
537
        *data_size = vmdaudio_loadsound(s, output_samples, p, 1, 0);
537
        *data_size = vmdaudio_loadsound(s, output_samples, p, 1, s->block_align);
538 538
    }
539 539

  
540 540
    return buf_size;
tests/ref/fate/sierra-vmd
301 301
1, 1890000, 4410, 0x5d2b15f4
302 302
1, 1899000, 4410, 0x48764b7c
303 303
1, 1908000, 4410, 0x1294e119
304
1, 1917000, 4410, 0x00000000
305
1, 1926000, 4410, 0x00000000
306
1, 1935000, 4410, 0x00000000
307
1, 1944000, 4410, 0x00000000
308
1, 1953000, 4410, 0x00000000
309
1, 1962000, 4410, 0x00000000
310
1, 1971000, 4410, 0x00000000
311
1, 1980000, 4410, 0x00000000
312
1, 1989000, 4410, 0x00000000
313
1, 1998000, 4410, 0x00000000
314
1, 2007000, 4410, 0x00000000
315
1, 2016000, 4410, 0x00000000
316
1, 2025000, 4410, 0x00000000
317
1, 2034000, 4410, 0x00000000
318
1, 2043000, 4410, 0x00000000
319
1, 2052000, 4410, 0x00000000
320
1, 2061000, 4410, 0x00000000
321
1, 2070000, 4410, 0x00000000
322
1, 2079000, 4410, 0x00000000
323
1, 2088000, 4410, 0x00000000
324
1, 2097000, 4410, 0x00000000
325
1, 2106000, 4410, 0x00000000
326
1, 2115000, 4410, 0x00000000
327
1, 2124000, 4410, 0x00000000
328
1, 2133000, 4410, 0x00000000
329
1, 2142000, 4410, 0x00000000
330
1, 2151000, 4410, 0x00000000
331
1, 2160000, 4410, 0x00000000
332
1, 2169000, 4410, 0x00000000

Also available in: Unified diff