Mercurial > libavcodec.hg
diff faad.c @ 4827:b3ee9a1526b0 libavcodec
Get rid of unnecessary pointer casts.
patch by Nicholas Tung, ntung ntung com
author | diego |
---|---|
date | Sun, 08 Apr 2007 20:24:16 +0000 |
parents | 7115a2f0854d |
children | fd173be649b7 |
line wrap: on
line diff
--- a/faad.c Sun Apr 08 18:54:53 2007 +0000 +++ b/faad.c Sun Apr 08 20:24:16 2007 +0000 @@ -103,7 +103,7 @@ static int faac_init_mp4(AVCodecContext *avctx) { - FAACContext *s = (FAACContext *) avctx->priv_data; + FAACContext *s = avctx->priv_data; unsigned long samplerate; #ifndef FAAD2_VERSION unsigned long channels; @@ -134,7 +134,7 @@ void *data, int *data_size, uint8_t *buf, int buf_size) { - FAACContext *s = (FAACContext *) avctx->priv_data; + FAACContext *s = avctx->priv_data; #ifndef FAAD2_VERSION unsigned long bytesconsumed; short *sample_buffer = NULL; @@ -194,7 +194,7 @@ static int faac_decode_end(AVCodecContext *avctx) { - FAACContext *s = (FAACContext *) avctx->priv_data; + FAACContext *s = avctx->priv_data; s->faacDecClose(s->faac_handle); @@ -204,7 +204,7 @@ static int faac_decode_init(AVCodecContext *avctx) { - FAACContext *s = (FAACContext *) avctx->priv_data; + FAACContext *s = avctx->priv_data; faacDecConfigurationPtr faac_cfg; #ifdef CONFIG_LIBFAADBIN