mirror of https://github.com/mpv-player/mpv
af_lavcac3enc: remove pointless casts
git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@34348 b3059339-0415-0410-9bf9-f77b7e298cf2 Author: reimar
This commit is contained in:
parent
6259df5313
commit
af6ac8ef5e
|
@ -59,8 +59,8 @@ typedef struct af_ac3enc_s {
|
||||||
// Initialization and runtime control
|
// Initialization and runtime control
|
||||||
static int control(struct af_instance_s *af, int cmd, void *arg)
|
static int control(struct af_instance_s *af, int cmd, void *arg)
|
||||||
{
|
{
|
||||||
af_ac3enc_t *s = (af_ac3enc_t *)af->setup;
|
af_ac3enc_t *s = af->setup;
|
||||||
af_data_t *data = (af_data_t *)arg;
|
af_data_t *data = arg;
|
||||||
int i, bit_rate, test_output_res;
|
int i, bit_rate, test_output_res;
|
||||||
static const int default_bit_rate[AC3_MAX_CHANNELS+1] = \
|
static const int default_bit_rate[AC3_MAX_CHANNELS+1] = \
|
||||||
{0, 96000, 192000, 256000, 384000, 448000, 448000};
|
{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->bit_rate = 0;
|
||||||
s->min_channel_num = 0;
|
s->min_channel_num = 0;
|
||||||
s->add_iec61937_header = 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);
|
&s->min_channel_num);
|
||||||
if (s->bit_rate < 1000)
|
if (s->bit_rate < 1000)
|
||||||
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
|
l = af->data; // Local data
|
||||||
buf = (char *)l->audio;
|
buf = l->audio;
|
||||||
src = (char *)c->audio;
|
src = c->audio;
|
||||||
left = c->len;
|
left = c->len;
|
||||||
|
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue