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

Git pushed a commit to branch release/5.1
in repository ffmpeg.

commit 26ce40b7dcfc42a6ab8cce4bf79935176f6001d7
Author:     James Almer <[email protected]>
AuthorDate: Sun Nov 17 15:53:03 2024 -0300
Commit:     James Almer <[email protected]>
CommitDate: Sat Sep 19 21:42:38 2026 -0300

    avcodec/libfdk-aacdec: set keyframe flag and profile in output frames
    
    Don't depend on the generic code setting this.
    This is in preparation for a following change.
    
    Signed-off-by: James Almer <[email protected]>
    (cherry picked from commit 281b7fc02e3158ee62c3c1d41267ddebb86578f0)
---
 libavcodec/libfdk-aacdec.c | 7 +++++--
 1 file changed, 5 insertions(+), 2 deletions(-)

diff --git a/libavcodec/libfdk-aacdec.c b/libavcodec/libfdk-aacdec.c
index 11eee51a98..0a927fe12d 100644
--- a/libavcodec/libfdk-aacdec.c
+++ b/libavcodec/libfdk-aacdec.c
@@ -110,7 +110,7 @@ static const AVClass fdk_aac_dec_class = {
     .version    = LIBAVUTIL_VERSION_INT,
 };
 
-static int get_stream_info(AVCodecContext *avctx)
+static int get_stream_info(AVCodecContext *avctx, AVFrame *frame)
 {
     FDKAACDecContext *s   = avctx->priv_data;
     CStreamInfo *info     = aacDecoder_GetStreamInfo(s->handle);
@@ -129,6 +129,9 @@ static int get_stream_info(AVCodecContext *avctx)
     }
     avctx->sample_rate = info->sampleRate;
     avctx->frame_size  = info->frameSize;
+    avctx->profile     = info->aot - 1;
+
+    frame->key_frame = !!(info->flags & AC_INDEP);
 #if FDKDEC_VER_AT_LEAST(2, 5) // 2.5.10
     if (!s->output_delay_set && info->outputDelay) {
         // Set this only once.
@@ -420,7 +423,7 @@ static int fdk_aac_decode_frame(AVCodecContext *avctx, 
AVFrame *frame,
         goto end;
     }
 
-    if ((ret = get_stream_info(avctx)) < 0)
+    if ((ret = get_stream_info(avctx, frame)) < 0)
         goto end;
     frame->nb_samples = avctx->frame_size;
 

-- 
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