This is an automated email from the git hooks/post-receive script.

Git pushed a commit to branch master
in repository ffmpeg.

The following commit(s) were added to refs/heads/master by this push:
     new 976cf5f912 avcodec/decode: print some more debug messages when 
skipping or discarding samples
976cf5f912 is described below

commit 976cf5f9120468f1a3af12aee41a817918fac977
Author:     James Almer <[email protected]>
AuthorDate: Wed Sep 16 11:48:37 2026 -0300
Commit:     James Almer <[email protected]>
CommitDate: Wed Sep 16 11:48:37 2026 -0300

    avcodec/decode: print some more debug messages when skipping or discarding 
samples
    
    Signed-off-by: James Almer <[email protected]>
---
 libavcodec/decode.c | 3 +++
 1 file changed, 3 insertions(+)

diff --git a/libavcodec/decode.c b/libavcodec/decode.c
index ba6ff8a9fd..22954b0626 100644
--- a/libavcodec/decode.c
+++ b/libavcodec/decode.c
@@ -356,6 +356,8 @@ static int discard_samples(AVCodecContext *avctx, AVFrame 
*frame, int64_t *disca
 
     if ((frame->flags & AV_FRAME_FLAG_DISCARD)) {
         avci->skip_samples = FFMAX(0, avci->skip_samples - frame->nb_samples);
+        av_log(avctx, AV_LOG_DEBUG, "discard whole frame due to discard frame 
flag, skip left: %d\n",
+               avci->skip_samples);
         *discarded_samples += frame->nb_samples;
         return AVERROR(EAGAIN);
     }
@@ -399,6 +401,7 @@ static int discard_samples(AVCodecContext *avctx, AVFrame 
*frame, int64_t *disca
 
     if (discard_padding > 0 && discard_padding <= frame->nb_samples) {
         if (discard_padding == frame->nb_samples) {
+            av_log(avctx, AV_LOG_DEBUG, "discard whole frame\n");
             *discarded_samples += frame->nb_samples;
             return AVERROR(EAGAIN);
         } else {

-- 
To stop receiving notification emails like this one, please contact
[email protected].
_______________________________________________
ffmpeg-cvslog mailing list -- [email protected]
To unsubscribe send an email to [email protected]

Reply via email to