[FFmpeg-devel] [PATCH 12/16] cosmetics: reindent after previous commit

Kostya kostya.shishkov
Tue Feb 22 22:56:07 CET 2011


On Tue, Feb 22, 2011 at 02:05:31PM -0500, Justin Ruggles wrote:
> ---
>  libavcodec/vmdav.c |   16 ++++++++--------
>  1 files changed, 8 insertions(+), 8 deletions(-)
> 

> diff --git a/libavcodec/vmdav.c b/libavcodec/vmdav.c
> index 87e03c5..83173d0 100644
> --- a/libavcodec/vmdav.c
> +++ b/libavcodec/vmdav.c
> @@ -486,15 +486,15 @@ static int vmdaudio_loadsound(VmdAudioContext *s, unsigned char *data,
>          memset(data, 0, silent_size);
>          data += silent_size;
>      }
> -        if (s->bits == 16)
> -            vmdaudio_decode_audio(s, data, buf, data_size, s->channels == 2);
> -        else {
> -            /* copy the data but convert it to signed */
> -            for (i = 0; i < data_size; i++){
> -                *data++ = buf[i] + 0x80;
> -                *data++ = buf[i] + 0x80;
> -            }
> +    if (s->bits == 16)
> +        vmdaudio_decode_audio(s, data, buf, data_size, s->channels == 2);
> +    else {
> +        /* copy the data but convert it to signed */
> +        for (i = 0; i < data_size; i++){
> +            *data++ = buf[i] + 0x80;
> +            *data++ = buf[i] + 0x80;
>          }
> +    }
>  
>      return silent_size + data_size * 2;
>  }

obviously ok



More information about the ffmpeg-devel mailing list