[FFmpeg-cvslog] avresample: use valid log context in mixing functions
Hendrik Leppkes
git at videolan.org
Mon Dec 17 14:17:57 CET 2012
ffmpeg | branch: master | Hendrik Leppkes <h.leppkes at gmail.com> | Sun Dec 16 09:52:35 2012 +0100| [0cf3505930913d3584b215f6912de04ff41366e0] | committer: Justin Ruggles
avresample: use valid log context in mixing functions
Signed-off-by: Justin Ruggles <justin.ruggles at gmail.com>
> http://git.videolan.org/gitweb.cgi/ffmpeg.git/?a=commit;h=0cf3505930913d3584b215f6912de04ff41366e0
---
libavresample/audio_mix.c | 10 +++++-----
1 file changed, 5 insertions(+), 5 deletions(-)
diff --git a/libavresample/audio_mix.c b/libavresample/audio_mix.c
index 62f8bd6..2b3d9f1 100644
--- a/libavresample/audio_mix.c
+++ b/libavresample/audio_mix.c
@@ -467,13 +467,13 @@ int ff_audio_mix_get_matrix(AudioMix *am, double *matrix, int stride)
if ( am->in_channels <= 0 || am->in_channels > AVRESAMPLE_MAX_CHANNELS ||
am->out_channels <= 0 || am->out_channels > AVRESAMPLE_MAX_CHANNELS) {
- av_log(am, AV_LOG_ERROR, "Invalid channel counts\n");
+ av_log(am->avr, AV_LOG_ERROR, "Invalid channel counts\n");
return AVERROR(EINVAL);
}
#define GET_MATRIX_CONVERT(suffix, scale) \
if (!am->matrix_ ## suffix[0]) { \
- av_log(am, AV_LOG_ERROR, "matrix is not set\n"); \
+ av_log(am->avr, AV_LOG_ERROR, "matrix is not set\n"); \
return AVERROR(EINVAL); \
} \
for (o = 0; o < am->out_channels; o++) \
@@ -491,7 +491,7 @@ int ff_audio_mix_get_matrix(AudioMix *am, double *matrix, int stride)
GET_MATRIX_CONVERT(flt, 1.0);
break;
default:
- av_log(am, AV_LOG_ERROR, "Invalid mix coeff type\n");
+ av_log(am->avr, AV_LOG_ERROR, "Invalid mix coeff type\n");
return AVERROR(EINVAL);
}
@@ -504,7 +504,7 @@ int ff_audio_mix_set_matrix(AudioMix *am, const double *matrix, int stride)
if ( am->in_channels <= 0 || am->in_channels > AVRESAMPLE_MAX_CHANNELS ||
am->out_channels <= 0 || am->out_channels > AVRESAMPLE_MAX_CHANNELS) {
- av_log(am, AV_LOG_ERROR, "Invalid channel counts\n");
+ av_log(am->avr, AV_LOG_ERROR, "Invalid channel counts\n");
return AVERROR(EINVAL);
}
@@ -540,7 +540,7 @@ int ff_audio_mix_set_matrix(AudioMix *am, const double *matrix, int stride)
CONVERT_MATRIX(flt, v)
break;
default:
- av_log(am, AV_LOG_ERROR, "Invalid mix coeff type\n");
+ av_log(am->avr, AV_LOG_ERROR, "Invalid mix coeff type\n");
return AVERROR(EINVAL);
}
More information about the ffmpeg-cvslog
mailing list