Mercurial > libavcodec.hg
comparison vmdav.c @ 2028:141a9539e270 libavcodec
data_size = 0 cleanup
author | michael |
---|---|
date | Fri, 21 May 2004 14:37:16 +0000 |
parents | d7505fbe66cb |
children | 4bdd4927d2fc |
comparison
equal
deleted
inserted
replaced
2027:3a78447c3b53 | 2028:141a9539e270 |
---|---|
520 unsigned char *p_end = buf + buf_size; | 520 unsigned char *p_end = buf + buf_size; |
521 | 521 |
522 if (buf_size < 16) | 522 if (buf_size < 16) |
523 return buf_size; | 523 return buf_size; |
524 | 524 |
525 *data_size = 0; | |
526 if (buf[6] == 1) { | 525 if (buf[6] == 1) { |
527 /* the chunk contains audio */ | 526 /* the chunk contains audio */ |
528 *data_size = vmdaudio_loadsound(s, output_samples, p, 0); | 527 *data_size = vmdaudio_loadsound(s, output_samples, p, 0); |
529 } else if (buf[6] == 2) { | 528 } else if (buf[6] == 2) { |
530 /* the chunk contains audio and silence mixed together */ | 529 /* the chunk contains audio and silence mixed together */ |