From af6ac8ef5eb4e65bc9a5f46bbddd6d9862226bbb Mon Sep 17 00:00:00 2001 From: mplayer-svn Date: Mon, 14 Nov 2011 19:05:49 +0000 Subject: [PATCH] af_lavcac3enc: remove pointless casts git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@34348 b3059339-0415-0410-9bf9-f77b7e298cf2 Author: reimar --- libaf/af_lavcac3enc.c | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/libaf/af_lavcac3enc.c b/libaf/af_lavcac3enc.c index 8cc9884f60..251ccf13b7 100644 --- a/libaf/af_lavcac3enc.c +++ b/libaf/af_lavcac3enc.c @@ -59,8 +59,8 @@ typedef struct af_ac3enc_s { // Initialization and runtime control static int control(struct af_instance_s *af, int cmd, void *arg) { - af_ac3enc_t *s = (af_ac3enc_t *)af->setup; - af_data_t *data = (af_data_t *)arg; + af_ac3enc_t *s = af->setup; + af_data_t *data = arg; int i, bit_rate, test_output_res; static const int default_bit_rate[AC3_MAX_CHANNELS+1] = \ {0, 96000, 192000, 256000, 384000, 448000, 448000}; @@ -125,7 +125,7 @@ static int control(struct af_instance_s *af, int cmd, void *arg) s->bit_rate = 0; s->min_channel_num = 0; s->add_iec61937_header = 0; - sscanf((char*)arg,"%d:%d:%d", &s->add_iec61937_header, &s->bit_rate, + sscanf(arg,"%d:%d:%d", &s->add_iec61937_header, &s->bit_rate, &s->min_channel_num); if (s->bit_rate < 1000) s->bit_rate *= 1000; @@ -199,8 +199,8 @@ static af_data_t* play(struct af_instance_s* af, af_data_t* data) } l = af->data; // Local data - buf = (char *)l->audio; - src = (char *)c->audio; + buf = l->audio; + src = c->audio; left = c->len;