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] avcodec/nvenc: Fix MV-HEVC encoding display SEI handling
@ 2025-07-08 14:06 Diego Felix de Souza via ffmpeg-devel
  2025-07-08 17:54 ` Timo Rothenpieler
  0 siblings, 1 reply; 2+ messages in thread
From: Diego Felix de Souza via ffmpeg-devel @ 2025-07-08 14:06 UTC (permalink / raw)
  To: ffmpeg-devel; +Cc: ddesouza

[-- Attachment #1: Type: message/rfc822, Size: 10164 bytes --]

From: <ddesouza@nvidia.com>
To: <ffmpeg-devel@ffmpeg.org>
Cc: Diego de Souza <ddesouza@nvidia.com>
Subject: [PATCH] avcodec/nvenc: Fix MV-HEVC encoding display SEI handling
Date: Tue, 8 Jul 2025 16:06:50 +0200
Message-ID: <20250708140650.98575-1-ddesouza@nvidia.com>

From: Diego de Souza <ddesouza@nvidia.com>

Remove redundant display_sei_sent flag for 3D reference display info
handling in MV-HEVC encoding. The display SEI must be sent for every
frame in the multi-view sequence.

Signed-off-by: Diego de Souza <ddesouza@nvidia.com>
---
 libavcodec/nvenc.c | 4 +---
 libavcodec/nvenc.h | 1 -
 2 files changed, 1 insertion(+), 4 deletions(-)

diff --git a/libavcodec/nvenc.c b/libavcodec/nvenc.c
index a2457523b1..50e9a2f33a 100644
--- a/libavcodec/nvenc.c
+++ b/libavcodec/nvenc.c
@@ -3205,14 +3205,12 @@ static int nvenc_send_frame(AVCodecContext *avctx, const AVFrame *frame)
                 }

                 pic_params.codecPicParams.hevcPicParams.p3DReferenceDisplayInfo = &ref_disp_info;
-                ctx->display_sei_sent = 1;
-            } else if (!ctx->display_sei_sent) {
+            } else {
                 ref_disp_info.precRefDisplayWidth = 31;
                 ref_disp_info.leftViewId[0] = 0;
                 ref_disp_info.rightViewId[0] = 1;

                 pic_params.codecPicParams.hevcPicParams.p3DReferenceDisplayInfo = &ref_disp_info;
-                ctx->display_sei_sent = 1;
             }

             ctx->next_view_id = !ctx->next_view_id;
diff --git a/libavcodec/nvenc.h b/libavcodec/nvenc.h
index 4a4d6730b1..6c44182333 100644
--- a/libavcodec/nvenc.h
+++ b/libavcodec/nvenc.h
@@ -319,7 +319,6 @@ typedef struct NvencContext
     int mdm, cll;
     int cbr_padding;
     int multiview, multiview_supported;
-    int display_sei_sent;
 } NvencContext;

 int ff_nvenc_encode_init(AVCodecContext *avctx);
--
2.39.5 (Apple Git-154)

-----------------------------------------------------------------------------------
NVIDIA GmbH
Wuerselen
Amtsgericht Aachen
HRB 8361
Managing Directors: Rebecca Peters, Donald Robertson, Janet Hall, Ludwig von Reiche

-----------------------------------------------------------------------------------
This email message is for the sole use of the intended recipient(s) and may contain
confidential information.  Any unauthorized review, use, disclosure or distribution
is prohibited.  If you are not the intended recipient, please contact the sender by
reply email and destroy all copies of the original message.
-----------------------------------------------------------------------------------

[-- Attachment #2: Type: text/plain, Size: 251 bytes --]

_______________________________________________
ffmpeg-devel mailing list
ffmpeg-devel@ffmpeg.org
https://ffmpeg.org/mailman/listinfo/ffmpeg-devel

To unsubscribe, visit link above, or email
ffmpeg-devel-request@ffmpeg.org with subject "unsubscribe".

^ permalink raw reply	[flat|nested] 2+ messages in thread

* Re: [FFmpeg-devel] [PATCH] avcodec/nvenc: Fix MV-HEVC encoding display SEI handling
  2025-07-08 14:06 [FFmpeg-devel] [PATCH] avcodec/nvenc: Fix MV-HEVC encoding display SEI handling Diego Felix de Souza via ffmpeg-devel
@ 2025-07-08 17:54 ` Timo Rothenpieler
  0 siblings, 0 replies; 2+ messages in thread
From: Timo Rothenpieler @ 2025-07-08 17:54 UTC (permalink / raw)
  To: ffmpeg-devel

looks good to me, will apply
_______________________________________________
ffmpeg-devel mailing list
ffmpeg-devel@ffmpeg.org
https://ffmpeg.org/mailman/listinfo/ffmpeg-devel

To unsubscribe, visit link above, or email
ffmpeg-devel-request@ffmpeg.org with subject "unsubscribe".

^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2025-07-08 17:54 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2025-07-08 14:06 [FFmpeg-devel] [PATCH] avcodec/nvenc: Fix MV-HEVC encoding display SEI handling Diego Felix de Souza via ffmpeg-devel
2025-07-08 17:54 ` Timo Rothenpieler

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 https://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/ https://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