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

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

commit 3538578ed0a4a43d057a575fb327444e815dbbb4
Author:     Michael Niedermayer <[email protected]>
AuthorDate: Sun Jul 26 23:08:14 2026 +0200
Commit:     Michael Niedermayer <[email protected]>
CommitDate: Mon Aug 3 21:51:42 2026 +0200

    avcodec/nvenc: write AV1 timecode metadata in AV1 syntax
    
    Fixes: https://code.ffmpeg.org/FFmpeg/FFmpeg/issues/20610
    
    Tested on 5090 by claude
    
    (cherry picked from commit afd059c340feb7379d33f8102b7dd7d01288fba1)
    Signed-off-by: Michael Niedermayer <[email protected]>
---
 libavcodec/nvenc.c | 6 ++++--
 1 file changed, 4 insertions(+), 2 deletions(-)

diff --git a/libavcodec/nvenc.c b/libavcodec/nvenc.c
index 1c931d43af..9203fb65c0 100644
--- a/libavcodec/nvenc.c
+++ b/libavcodec/nvenc.c
@@ -2718,8 +2718,10 @@ static int prepare_sei_data_array(AVCodecContext *avctx, 
const AVFrame *frame)
         void *tc_data = NULL;
         size_t tc_size = 0;
 
-        if (ff_alloc_timecode_sei(frame, avctx->framerate, 0, &tc_data, 
&tc_size) < 0) {
-            av_log(ctx, AV_LOG_ERROR, "Not enough memory for timecode sei, 
skipping\n");
+        if ((avctx->codec->id == AV_CODEC_ID_AV1 ?
+             ff_alloc_timecode_metadata_av1(frame, avctx->framerate, &tc_data, 
&tc_size) :
+             ff_alloc_timecode_sei(frame, avctx->framerate, 0, &tc_data, 
&tc_size)) < 0) {
+            av_log(ctx, AV_LOG_ERROR, "Not enough memory for timecode, 
skipping\n");
         }
 
         if (tc_data) {

_______________________________________________
ffmpeg-cvslog mailing list -- [email protected]
To unsubscribe send an email to [email protected]

Reply via email to