ffmpeg | branch: master | Dawid Kozinski <d.kozin...@samsung.com> | Thu Apr 18 
12:53:08 2024 +0200| [0797651c12f643ea382d0ec09214670fd8d01b17] | committer: 
James Almer

avcodec/evc: Set the AV_FRAME_FLAG_KEY flag for a decoded frame when the 
decoded packet contains a keyframe

Signed-off-by: Dawid Kozinski <d.kozin...@samsung.com>

> http://git.videolan.org/gitweb.cgi/ffmpeg.git/?a=commit;h=0797651c12f643ea382d0ec09214670fd8d01b17
---

 libavcodec/libxevd.c | 4 ++++
 1 file changed, 4 insertions(+)

diff --git a/libavcodec/libxevd.c b/libavcodec/libxevd.c
index 479d9be046..520fdab7d8 100644
--- a/libavcodec/libxevd.c
+++ b/libavcodec/libxevd.c
@@ -413,6 +413,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);
                     }
                 }

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

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

Reply via email to