summaryrefslogtreecommitdiff
path: root/libavcodec/faad.c
diff options
context:
space:
mode:
authorNicholas Tung <ntung@ntung.com>2007-04-08 20:24:16 +0000
committerDiego Biurrun <diego@biurrun.de>2007-04-08 20:24:16 +0000
commite4141433ead866d1b359c0cbf3e4d5180477206d (patch)
treee2878410dbdf558dfb561f28cf29585c3896918d /libavcodec/faad.c
parent119e48d9607e1a43c5ff021b5345bbd62eef3926 (diff)
Get rid of unnecessary pointer casts.
patch by Nicholas Tung, ntung ntung com Originally committed as revision 8687 to svn://svn.ffmpeg.org/ffmpeg/trunk
Diffstat (limited to 'libavcodec/faad.c')
-rw-r--r--libavcodec/faad.c8
1 files changed, 4 insertions, 4 deletions
diff --git a/libavcodec/faad.c b/libavcodec/faad.c
index 01cbd40e7c..672a975eeb 100644
--- a/libavcodec/faad.c
+++ b/libavcodec/faad.c
@@ -103,7 +103,7 @@ static const unsigned long faac_srates[] =
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 @@ static int faac_decode_frame(AVCodecContext *avctx,
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_frame(AVCodecContext *avctx,
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_end(AVCodecContext *avctx)
static int faac_decode_init(AVCodecContext *avctx)
{
- FAACContext *s = (FAACContext *) avctx->priv_data;
+ FAACContext *s = avctx->priv_data;
faacDecConfigurationPtr faac_cfg;
#ifdef CONFIG_LIBFAADBIN