History

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

Dawid Kozinski committed 2 years ago

Commit 07976511 parent 214cbe21 file · +4 −0Browse files

Showing the changes to libavcodec (1 of 1 file). Show all

Unified · Split

libavcodec/libxevd.c+4−0
@@ -413,6 +413,10 @@ static int libxevd_receive_frame(AVCodecContext *avctx, AVFrame *frame) · 412 unmodified lines
413413 return AVERROR(EAGAIN);
414414 }
415415 } else {
416+ if (stat.stype == XEVD_ST_I) {
417+ frame->pict_type = AV_PICTURE_TYPE_I;
418+ frame->flags |= AV_FRAME_FLAG_KEY;
419+ }
416420 return libxevd_return_frame(avctx, frame, imgb, &pkt_au);
417421 }
418422 }

Keyboard shortcuts

General

Show keyboard shortcuts
?
Focus the current search
/

Issues and pull requests

Open filters
f

Issues, pull requests and Inbox

Select next item
j↓
Select previous item
k↑
Open selected item
Enter
Dismiss filters or clear selection
Esc

Repository code

Go to file
t