mirror of
https://github.com/nyanmisaka/ffmpeg-rockchip.git
synced 2026-01-24 02:21:11 +01:00
avcodec/mpegvideo_enc: Don't set write-only properties
The frame is immediately reset in the ff_mpeg_unref_picture() call below. Signed-off-by: Andreas Rheinhardt <andreas.rheinhardt@outlook.com>
This commit is contained in:
parent
3937a21f21
commit
070bc4d2c5
1 changed files with 0 additions and 4 deletions
|
|
@ -1699,10 +1699,6 @@ static int frame_start(MpegEncContext *s)
|
|||
}
|
||||
|
||||
s->current_picture_ptr->f->pict_type = s->pict_type;
|
||||
if (s->pict_type == AV_PICTURE_TYPE_I)
|
||||
s->current_picture.f->flags |= AV_FRAME_FLAG_KEY;
|
||||
else
|
||||
s->current_picture.f->flags &= ~AV_FRAME_FLAG_KEY;
|
||||
|
||||
ff_mpeg_unref_picture(s->avctx, &s->current_picture);
|
||||
if ((ret = ff_mpeg_ref_picture(s->avctx, &s->current_picture,
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue