diff options
author | Michael Niedermayer <michaelni@gmx.at> | 2012-07-08 00:20:21 +0200 |
---|---|---|
committer | Michael Niedermayer <michaelni@gmx.at> | 2012-07-08 00:26:27 +0200 |
commit | acdf9a6ca5515801e68a1f2a9649d4291c9b7b8a (patch) | |
tree | 3d91337c4ebb00b05e511c8a87e94d7e01c93141 /libavcodec/aacdec.c | |
parent | d039b6074ca68da9b6dc88d8bb40056fee9fecb6 (diff) | |
download | ffmpeg-streaming-acdf9a6ca5515801e68a1f2a9649d4291c9b7b8a.zip ffmpeg-streaming-acdf9a6ca5515801e68a1f2a9649d4291c9b7b8a.tar.gz |
aacdec: correct "audio config changed" warning message
Idea-by: Reimar
Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
Diffstat (limited to 'libavcodec/aacdec.c')
-rw-r--r-- | libavcodec/aacdec.c | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/libavcodec/aacdec.c b/libavcodec/aacdec.c index 6d07bea..42fac7c 100644 --- a/libavcodec/aacdec.c +++ b/libavcodec/aacdec.c @@ -2665,7 +2665,11 @@ static int latm_decode_audio_specific_config(struct LATMContext *latmctx, ac->oc[1].m4ac.sample_rate != m4ac.sample_rate || ac->oc[1].m4ac.chan_config != m4ac.chan_config) { - av_log(avctx, AV_LOG_INFO, "audio config changed\n"); + if(latmctx->initialized) { + av_log(avctx, AV_LOG_INFO, "audio config changed\n"); + } else { + av_log(avctx, AV_LOG_INFO, "initializing latmctx\n"); + } latmctx->initialized = 0; esize = (bits_consumed+7) / 8; |