changeset 34260:07a21268eb84

Remove pointless casts.
author reimar
date Mon, 14 Nov 2011 19:05:49 +0000
parents a9bfa5a9fcac
children 4a6b8c6e837a
files libaf/af_lavcac3enc.c
diffstat 1 files changed, 5 insertions(+), 5 deletions(-) [+]
line wrap: on
line diff
--- a/libaf/af_lavcac3enc.c	Mon Nov 14 09:58:26 2011 +0000
+++ b/libaf/af_lavcac3enc.c	Mon Nov 14 19:05:49 2011 +0000
@@ -51,8 +51,8 @@
 // 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};
@@ -112,7 +112,7 @@
         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;
@@ -186,8 +186,8 @@
     }
 
     l = af->data;           // Local data
-    buf = (char *)l->audio;
-    src = (char *)c->audio;
+    buf = l->audio;
+    src = c->audio;
     left = c->len;