[libav-devel] [PATCH 4/4] smackaud: use uint8_t* for 8-bit output buffer type

Kostya Shishkov kostya.shishkov at gmail.com
Mon Nov 7 21:04:52 CET 2011


On Mon, Nov 07, 2011 at 02:42:01PM -0500, Justin Ruggles wrote:
> This matches the output sample format and the range of the output values.
> ---
>  libavcodec/smacker_audio.c |    2 +-
>  1 files changed, 1 insertions(+), 1 deletions(-)
> 
> diff --git a/libavcodec/smacker_audio.c b/libavcodec/smacker_audio.c
> index 40ce30e..47bc794 100644
> --- a/libavcodec/smacker_audio.c
> +++ b/libavcodec/smacker_audio.c
> @@ -55,7 +55,7 @@ static int smka_decode_frame(AVCodecContext *avctx, void *data, int *data_size,
>      HuffContext h[4];
>      VLC vlc[4];
>      int16_t *samples = data;
> -    int8_t *samples8 = data;
> +    uint8_t *samples8 = data;
>      int val;
>      int i, res;
>      int unp_size;
> -- 

OK


More information about the libav-devel mailing list