Showing the changes to libavcodec (1 of 1 file). Show all
Unified · Split
| @@ -413,6 +413,10 @@ static int libxevd_receive_frame(AVCodecContext *avctx, AVFrame *frame) · 412 unmodified lines | ||
| 413 | 413 | return AVERROR(EAGAIN); |
| 414 | 414 | } |
| 415 | 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 | 420 | return libxevd_return_frame(avctx, frame, imgb, &pkt_au); |
| 417 | 421 | } |
| 418 | 422 | } |