Git Inbox Mirror of the ffmpeg-devel mailing list - see https://ffmpeg.org/mailman/listinfo/ffmpeg-devel
 help / color / mirror / Atom feed
* [FFmpeg-devel] [PATCH] lavc/libsvtav1: set packet durations (PR #20584)
@ 2025-09-23  7:47 rcombs via ffmpeg-devel
  0 siblings, 0 replies; only message in thread
From: rcombs via ffmpeg-devel @ 2025-09-23  7:47 UTC (permalink / raw)
  To: ffmpeg-devel; +Cc: rcombs

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 <rcombs@rcombs.me>
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 -- ffmpeg-devel@ffmpeg.org
To unsubscribe send an email to ffmpeg-devel-leave@ffmpeg.org

^ permalink raw reply	[flat|nested] only message in thread

only message in thread, other threads:[~2025-09-23  7:47 UTC | newest]

Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2025-09-23  7:47 [FFmpeg-devel] [PATCH] lavc/libsvtav1: set packet durations (PR #20584) rcombs via ffmpeg-devel

Git Inbox Mirror of the ffmpeg-devel mailing list - see https://ffmpeg.org/mailman/listinfo/ffmpeg-devel

This inbox may be cloned and mirrored by anyone:

	git clone --mirror http://master.gitmailbox.com/ffmpegdev/0 ffmpegdev/git/0.git

	# If you have public-inbox 1.1+ installed, you may
	# initialize and index your mirror using the following commands:
	public-inbox-init -V2 ffmpegdev ffmpegdev/ http://master.gitmailbox.com/ffmpegdev \
		ffmpegdev@gitmailbox.com
	public-inbox-index ffmpegdev

Example config snippet for mirrors.


AGPL code for this site: git clone https://public-inbox.org/public-inbox.git