These AVFrames are blank and therefore the flag is already unset.
Unified · Split
| @@ -387,7 +387,6 @@ int ff_mpv_frame_start(MpegEncContext *s, AVCodecContext *avctx) · 386 unmodified lines | |||
| 387 | s->last_picture_ptr = &s->picture[idx]; | 387 | s->last_picture_ptr = &s->picture[idx]; |
| 388 | 388 | ||
| 389 | s->last_picture_ptr->reference = 3; | 389 | s->last_picture_ptr->reference = 3; |
| 390 | s->last_picture_ptr->f->flags &= ~AV_FRAME_FLAG_KEY; | ||
| 391 | s->last_picture_ptr->f->pict_type = AV_PICTURE_TYPE_P; | 390 | s->last_picture_ptr->f->pict_type = AV_PICTURE_TYPE_P; |
| 392 | 391 | ||
| 393 | if (alloc_picture(s, s->last_picture_ptr) < 0) { | 392 | if (alloc_picture(s, s->last_picture_ptr) < 0) { |
| @@ -414,7 +413,6 @@ int ff_mpv_frame_start(MpegEncContext *s, AVCodecContext *avctx) · 20 unmodified lines | |||
| 414 | s->next_picture_ptr = &s->picture[idx]; | 413 | s->next_picture_ptr = &s->picture[idx]; |
| 415 | 414 | ||
| 416 | s->next_picture_ptr->reference = 3; | 415 | s->next_picture_ptr->reference = 3; |
| 417 | s->next_picture_ptr->f->flags &= ~AV_FRAME_FLAG_KEY; | ||
| 418 | s->next_picture_ptr->f->pict_type = AV_PICTURE_TYPE_P; | 416 | s->next_picture_ptr->f->pict_type = AV_PICTURE_TYPE_P; |
| 419 | 417 | ||
| 420 | if (alloc_picture(s, s->next_picture_ptr) < 0) { | 418 | if (alloc_picture(s, s->next_picture_ptr) < 0) { |