PR #20584 opened by rcombs URL: https://code.ffmpeg.org/FFmpeg/FFmpeg/pulls/20584 Patch URL: https://code.ffmpeg.org/FFmpeg/FFmpeg/pulls/20584.patch
>From 5f00beecfcc26d05d486578e64a07a4c7bbbb775 Mon Sep 17 00:00:00 2001 From: rcombs <[email protected]> Date: Tue, 23 Sep 2025 00:45:58 -0700 Subject: [PATCH] lavc/libsvtav1: set packet durations --- libavcodec/libsvtav1.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/libavcodec/libsvtav1.c b/libavcodec/libsvtav1.c index c6a0ff90bc..8ac5fd2d04 100644 --- a/libavcodec/libsvtav1.c +++ b/libavcodec/libsvtav1.c @@ -520,6 +520,7 @@ static int eb_send_frame(AVCodecContext *avctx, const AVFrame *frame) headerPtr->flags = 0; headerPtr->p_app_private = NULL; headerPtr->pts = frame->pts; + headerPtr->n_tick_count = frame->duration; switch (frame->pict_type) { case AV_PICTURE_TYPE_I: @@ -636,6 +637,7 @@ static int eb_receive_packet(AVCodecContext *avctx, AVPacket *pkt) pkt->size = headerPtr->n_filled_len; pkt->pts = headerPtr->pts; pkt->dts = headerPtr->dts; + pkt->duration = headerPtr->n_tick_count; switch (headerPtr->pic_type) { case EB_AV1_KEY_PICTURE: -- 2.49.1 _______________________________________________ ffmpeg-devel mailing list -- [email protected] To unsubscribe send an email to [email protected]
