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 v3 1/5] avcodec/evc: Set the AV_FRAME_FLAG_KEY flag for a decoded frame when the decoded packet contains a keyframe
       [not found] <CGME20240418105313eucas1p149aa0e8fce7d1907b4f8e301cb79aa14@eucas1p1.samsung.com>
@ 2024-04-18 10:53 ` Dawid Kozinski
  0 siblings, 0 replies; only message in thread
From: Dawid Kozinski @ 2024-04-18 10:53 UTC (permalink / raw)
  To: d.frankiewic, ffmpeg-devel; +Cc: Dawid Kozinski

Signed-off-by: Dawid Kozinski <d.kozinski@samsung.com>
---
 libavcodec/libxevd.c | 4 ++++
 1 file changed, 4 insertions(+)

diff --git a/libavcodec/libxevd.c b/libavcodec/libxevd.c
index c6c7327e65..de641d85f4 100644
--- a/libavcodec/libxevd.c
+++ b/libavcodec/libxevd.c
@@ -415,6 +415,10 @@ static int libxevd_receive_frame(AVCodecContext *avctx, AVFrame *frame)
                             return  AVERROR(EAGAIN);
                         }
                     } else {
+                        if (stat.stype == XEVD_ST_I) { 
+                            frame->pict_type = AV_PICTURE_TYPE_I;
+                            frame->flags |= AV_FRAME_FLAG_KEY;
+                        }
                         return libxevd_return_frame(avctx, frame, imgb, &pkt_au);
                     }
                 }
-- 
2.25.1

_______________________________________________
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] only message in thread

only message in thread, other threads:[~2024-04-18 10:53 UTC | newest]

Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
     [not found] <CGME20240418105313eucas1p149aa0e8fce7d1907b4f8e301cb79aa14@eucas1p1.samsung.com>
2024-04-18 10:53 ` [FFmpeg-devel] [PATCH v3 1/5] avcodec/evc: Set the AV_FRAME_FLAG_KEY flag for a decoded frame when the decoded packet contains a keyframe Dawid Kozinski

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