From: "Dawid Kozinski/Multimedia \(PLT\) /SRPOL/Staff Engineer/Samsung Electronics" <d.kozinski@samsung.com> To: "'FFmpeg development discussions and patches'" <ffmpeg-devel@ffmpeg.org> Subject: Re: [FFmpeg-devel] [PATCH v1 1/6] avcodec/evc: Set the AV_FRAME_FLAG_KEY flag for a decoded frame when the decoded packet contains a keyframe Date: Mon, 6 May 2024 09:12:28 +0200 Message-ID: <00bc01da9f84$c16bae10$44430a30$@samsung.com> (raw) In-Reply-To: <ddda14eb-db46-48e3-b6e7-28b9083c49cf@gmail.com> > -----Original Message----- > From: ffmpeg-devel <ffmpeg-devel-bounces@ffmpeg.org> On Behalf Of James > Almer > Sent: środa, 17 kwietnia 2024 14:39 > To: ffmpeg-devel@ffmpeg.org > Subject: Re: [FFmpeg-devel] [PATCH v1 1/6] avcodec/evc: Set the > AV_FRAME_FLAG_KEY flag for a decoded frame when the decoded packet > contains a keyframe > > On 4/17/2024 2:22 AM, Dawid Kozinski wrote: > > Signed-off-by: Dawid Kozinski <d.kozinski@samsung.com> > > --- > > libavcodec/libxevd.c | 5 +++++ > > 1 file changed, 5 insertions(+) > > > > diff --git a/libavcodec/libxevd.c b/libavcodec/libxevd.c index > > c6c7327e65..e864bd5200 100644 > > --- a/libavcodec/libxevd.c > > +++ b/libavcodec/libxevd.c > > @@ -391,6 +391,11 @@ static int libxevd_receive_frame(AVCodecContext > *avctx, AVFrame *frame) > > if (stat.read != nalu_size) > > av_log(avctx, AV_LOG_INFO, "Different reading of > > bitstream (in:%d, read:%d)\n,", nalu_size, stat.read); > > > > + if (stat.stype == XEVD_ST_I) { > > + frame->pict_type = AV_PICTURE_TYPE_I; > > + frame->flags |= AV_FRAME_FLAG_KEY; > > + } > > Shouldn't this be inside the stat.fnum >= 0 block below? > > > + > > // stat.fnum - has negative value if the decoded data is not frame > > if (stat.fnum >= 0) { Moved > _______________________________________________ > ffmpeg-devel mailing list > ffmpeg-devel@ffmpeg.org > https://protect2.fireeye.com/v1/url?k=a29889eb-c3139cd2-a29902a4- > 000babffae10-eb1fef97e1007353&q=1&e=c04d8490-c1e2-4395-83d3- > 7ea762e16a64&u=https%3A%2F%2Fffmpeg.org%2Fmailman%2Flistinfo%2Fffmp > eg-devel > > To unsubscribe, visit link above, or email ffmpeg-devel-request@ffmpeg.org > with subject "unsubscribe". _______________________________________________ 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".
prev parent reply other threads:[~2024-05-06 7:12 UTC|newest] Thread overview: 4+ messages / expand[flat|nested] mbox.gz Atom feed top [not found] <CGME20240417052305eucas1p100098206998d263abc1031a7fcdf6669@eucas1p1.samsung.com> 2024-04-17 5:22 ` Dawid Kozinski 2024-04-17 12:38 ` James Almer 2024-04-18 7:34 ` Dawid Kozinski/Multimedia (PLT) /SRPOL/Staff Engineer/Samsung Electronics 2024-05-06 7:12 ` Dawid Kozinski/Multimedia (PLT) /SRPOL/Staff Engineer/Samsung Electronics [this message]
Reply instructions: You may reply publicly to this message via plain-text email using any one of the following methods: * Save the following mbox file, import it into your mail client, and reply-to-all from there: mbox Avoid top-posting and favor interleaved quoting: https://en.wikipedia.org/wiki/Posting_style#Interleaved_style * Reply using the --to, --cc, and --in-reply-to switches of git-send-email(1): git send-email \ --in-reply-to='00bc01da9f84$c16bae10$44430a30$@samsung.com' \ --to=d.kozinski@samsung.com \ --cc=ffmpeg-devel@ffmpeg.org \ /path/to/YOUR_REPLY https://kernel.org/pub/software/scm/git/docs/git-send-email.html * If your mail client supports setting the In-Reply-To header via mailto: links, try the mailto: link
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