diff options
author | wm4 <wm4@nowhere> | 2013-11-15 21:25:05 +0100 |
---|---|---|
committer | wm4 <wm4@nowhere> | 2013-11-15 21:25:05 +0100 |
commit | 514c4547702a01adb6f9e6274c40a77c7c511339 (patch) | |
tree | c307d2d60094521cee703cbe9510f0ff9037e96b /audio/filter/af_drc.c | |
parent | 2289a479b174efa062fab84a66075b49f27c804d (diff) | |
download | mpv-514c4547702a01adb6f9e6274c40a77c7c511339.tar.bz2 mpv-514c4547702a01adb6f9e6274c40a77c7c511339.tar.xz |
audio: drop "_NE"/"ne" suffix from audio formats
You get the native format by not appending any suffix to the format.
This change includes user-facing names, e.g. for the --format option.
Diffstat (limited to 'audio/filter/af_drc.c')
-rw-r--r-- | audio/filter/af_drc.c | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/audio/filter/af_drc.c b/audio/filter/af_drc.c index 17c4a12a95..685dbcd8d5 100644 --- a/audio/filter/af_drc.c +++ b/audio/filter/af_drc.c @@ -91,8 +91,8 @@ static int control(struct af_instance* af, int cmd, void* arg) mp_audio_force_interleaved_format((struct mp_audio*)arg); mp_audio_copy_config(af->data, (struct mp_audio*)arg); - if(((struct mp_audio*)arg)->format != (AF_FORMAT_S16_NE)){ - mp_audio_set_format(af->data, AF_FORMAT_FLOAT_NE); + if(((struct mp_audio*)arg)->format != (AF_FORMAT_S16)){ + mp_audio_set_format(af->data, AF_FORMAT_FLOAT); } return af_test_output(af,(struct mp_audio*)arg); case AF_CONTROL_COMMAND_LINE:{ @@ -296,14 +296,14 @@ static struct mp_audio* play(struct af_instance* af, struct mp_audio* data) { af_drc_t *s = af->setup; - if(af->data->format == (AF_FORMAT_S16_NE)) + if(af->data->format == (AF_FORMAT_S16)) { if (s->method) method2_int16(s, data); else method1_int16(s, data); } - else if(af->data->format == (AF_FORMAT_FLOAT_NE)) + else if(af->data->format == (AF_FORMAT_FLOAT)) { if (s->method) method2_float(s, data); |