Unified · Split
| @@ -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 | } |