diff options
author | Michael Niedermayer <michaelni@gmx.at> | 2013-01-18 13:54:38 +0100 |
---|---|---|
committer | Michael Niedermayer <michaelni@gmx.at> | 2013-01-18 13:54:38 +0100 |
commit | 8ac0d95bd371a3cf6b4dd57a3d56cdc7bceef464 (patch) | |
tree | 1cbdc131646a523249ebdd373387176c161e5928 /libavresample | |
parent | 17596198cacbb7277f1d9641f0a76fe62ebf155d (diff) | |
parent | 940b8b5861241df7aff8977774e1de6e67de5b83 (diff) | |
download | ffmpeg-8ac0d95bd371a3cf6b4dd57a3d56cdc7bceef464.tar.gz |
Merge remote-tracking branch 'qatar/master'
* qatar/master:
h264: avoid pointless copying of ref lists
lavr: always reset mix function names and pointers in mix_function_init()
lavr: call mix_function_init() in ff_audio_mix_set_matrix()
fate: update ref after rv30_loop_filter fix
rv30: fix masking in rv30_loop_filter()
Conflicts:
tests/ref/fate/filter-delogo
tests/ref/fate/rv30
Merged-by: Michael Niedermayer <michaelni@gmx.at>
Diffstat (limited to 'libavresample')
-rw-r--r-- | libavresample/audio_mix.c | 13 |
1 files changed, 5 insertions, 8 deletions
diff --git a/libavresample/audio_mix.c b/libavresample/audio_mix.c index 12f5d24ba0..c701bf154b 100644 --- a/libavresample/audio_mix.c +++ b/libavresample/audio_mix.c @@ -284,11 +284,12 @@ static void mix_2_to_6_fltp_flt_c(float **samples, float **matrix, int len, static int mix_function_init(AudioMix *am) { + am->func_descr = am->func_descr_generic = "n/a"; + am->mix = am->mix_generic = NULL; + /* no need to set a mix function when we're skipping mixing */ - if (!am->in_matrix_channels || !am->out_matrix_channels) { - am->func_descr = "n/a"; + if (!am->in_matrix_channels || !am->out_matrix_channels) return 0; - } /* any-to-any C versions */ @@ -422,10 +423,6 @@ AudioMix *ff_audio_mix_alloc(AVAudioResampleContext *avr) av_free(matrix_dbl); } - ret = mix_function_init(am); - if (ret < 0) - goto error; - return am; error: @@ -704,5 +701,5 @@ int ff_audio_mix_set_matrix(AudioMix *am, const double *matrix, int stride) return AVERROR(EINVAL); } - return 0; + return mix_function_init(am); } |