On Fri, Oct 21, 2011 at 05:58:49PM -0400, Justin Ruggles wrote:
> ---
>  libavcodec/tta.c |    9 ++++-----
>  1 files changed, 4 insertions(+), 5 deletions(-)
> 
> diff --git a/libavcodec/tta.c b/libavcodec/tta.c
> index de478cc..af39c2d 100644
> --- a/libavcodec/tta.c
> +++ b/libavcodec/tta.c
> @@ -384,12 +384,11 @@ static int tta_decode_frame(AVCodecContext *avctx,
>  
>      // convert to output buffer
>      if (s->bps == 2) {
> -            int16_t *samples = data;
> -            for (p = s->decode_buffer; p < s->decode_buffer + (framelen * 
> s->channels); p++) {
> -                *samples++ = *p;
> -            }
> +        int16_t *samples = data;
> +        for (p = s->decode_buffer; p < s->decode_buffer + (framelen * 
> s->channels); p++)
> +            *samples++ = *p;
>      } else {
> -            av_log(s->avctx, AV_LOG_ERROR, "Error, only 16bit samples 
> supported!\n");
> +        av_log(s->avctx, AV_LOG_ERROR, "Error, only 16bit samples 
> supported!\n");
>      }
>  
>      *data_size = out_size;
> -- 

OK
_______________________________________________
libav-devel mailing list
[email protected]
https://lists.libav.org/mailman/listinfo/libav-devel

Reply via email to