diff mbox

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

Message ID 20180306204533.84325-1-ffmpeg@tmm1.net
State Accepted
Commit 23c91abe4f6a76d0a5066adf2abbf8cd66f1b1ec
Headers show

Commit Message

Aman Gupta March 6, 2018, 8:45 p.m. UTC
From: Aman Gupta <aman@tmm1.net>

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

Comments

Michael Niedermayer March 7, 2018, 6:04 p.m. UTC | #1
On Tue, Mar 06, 2018 at 12:45:33PM -0800, Aman Gupta wrote:
> From: Aman Gupta <aman@tmm1.net>
> 
> ---
>  libavcodec/aacdec.c | 4 ++--
>  1 file changed, 2 insertions(+), 2 deletions(-)

LGTM

thx

[...]
diff mbox

Patch

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");
         }