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

Unified · Split

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

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