[FFmpeg-cvslog] avcodec/aacdec: log configuration change details

Aman Gupta git at videolan.org
Wed Mar 7 21:33:31 EET 2018


ffmpeg | branch: master | Aman Gupta <aman at tmm1.net> | Tue Mar  6 12:44:59 2018 -0800| [23c91abe4f6a76d0a5066adf2abbf8cd66f1b1ec] | committer: Aman Gupta

avcodec/aacdec: log configuration change details

Signed-off-by: Aman Gupta <aman at tmm1.net>
Signed-off-by: Michael Niedermayer <michael at niedermayer.cc>

> http://git.videolan.org/gitweb.cgi/ffmpeg.git/?a=commit;h=23c91abe4f6a76d0a5066adf2abbf8cd66f1b1ec
---

 libavcodec/aacdec.c | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/libavcodec/aacdec.c b/libavcodec/aacdec.c
index 44352764a7..d394700cdc 100644
--- a/libavcodec/aacdec.c
+++ b/libavcodec/aacdec.c
@@ -318,8 +318,8 @@ 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) {
 
-        if(latmctx->initialized) {
-            av_log(avctx, AV_LOG_INFO, "audio config changed\n");
+        if (latmctx->initialized) {
+            av_log(avctx, AV_LOG_INFO, "audio config changed (sample_rate=%d, chan_config=%d)\n", m4ac.sample_rate, m4ac.chan_config);
         } else {
             av_log(avctx, AV_LOG_DEBUG, "initializing latmctx\n");
         }



More information about the ffmpeg-cvslog mailing list