Commit 0797651c authored by Dawid Kozinski's avatar Dawid Kozinski Committed by James Almer

avcodec/evc: Set the AV_FRAME_FLAG_KEY flag for a decoded frame when the...

avcodec/evc: Set the AV_FRAME_FLAG_KEY flag for a decoded frame when the decoded packet contains a keyframe
Signed-off-by: 's avatarDawid Kozinski <d.kozinski@samsung.com>
parent 214cbe29
......@@ -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);
}
}
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment