mirror of
https://github.com/xenia-project/FFmpeg.git
synced 2024-12-03 00:56:54 +00:00
cosmetics: reindent after previous commit
Signed-off-by: Ronald S. Bultje <rsbultje@gmail.com>
(cherry picked from commit 868f2f4d90
)
This commit is contained in:
parent
aa23625037
commit
684512e16d
@ -484,19 +484,19 @@ static int vmdaudio_loadsound(VmdAudioContext *s, unsigned char *data,
|
|||||||
// if (silence)
|
// if (silence)
|
||||||
// av_log(s->avctx, AV_LOG_INFO, "silent block!\n");
|
// av_log(s->avctx, AV_LOG_INFO, "silent block!\n");
|
||||||
|
|
||||||
if (silence) {
|
if (silence) {
|
||||||
memset(data, 0, data_size * 2);
|
memset(data, 0, data_size * 2);
|
||||||
} else {
|
} else {
|
||||||
if (s->bits == 16)
|
if (s->bits == 16)
|
||||||
vmdaudio_decode_audio(s, data, buf, data_size, s->channels == 2);
|
vmdaudio_decode_audio(s, data, buf, data_size, s->channels == 2);
|
||||||
else {
|
else {
|
||||||
/* copy the data but convert it to signed */
|
/* copy the data but convert it to signed */
|
||||||
for (i = 0; i < data_size; i++){
|
for (i = 0; i < data_size; i++){
|
||||||
*data++ = buf[i] + 0x80;
|
*data++ = buf[i] + 0x80;
|
||||||
*data++ = buf[i] + 0x80;
|
*data++ = buf[i] + 0x80;
|
||||||
}
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
}
|
||||||
|
|
||||||
return data_size * 2;
|
return data_size * 2;
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user