The frame is immediately reset in the ff_mpeg_unref_picture() call below.
Unified · Split
| @@ -1699,10 +1699,6 @@ static int frame_start(MpegEncContext *s) · 1698 unmodified lines | ||
| 1699 | 1699 | } |
| 1700 | 1700 | |
| 1701 | 1701 | s->current_picture_ptr->f->pict_type = s->pict_type; |
| 1702 | − if (s->pict_type == AV_PICTURE_TYPE_I) | |
| 1703 | − s->current_picture.f->flags |= AV_FRAME_FLAG_KEY; | |
| 1704 | − else | |
| 1705 | − s->current_picture.f->flags &= ~AV_FRAME_FLAG_KEY; | |
| 1706 | 1702 | |
| 1707 | 1703 | ff_mpeg_unref_picture(s->avctx, &s->current_picture); |
| 1708 | 1704 | if ((ret = ff_mpeg_ref_picture(s->avctx, &s->current_picture, |