History

avcodec/mpegvideo_enc: Don't set write-only properties

The frame is immediately reset in the ff_mpeg_unref_picture() call below.

Andreas Rheinhardt committed 3 years ago

Commit 070bc4d1 parent 3937a211 file · +0 −4Browse files

Unified · Split

libavcodec/mpegvideo_enc.c+0−4
@@ -1699,10 +1699,6 @@ static int frame_start(MpegEncContext *s) · 1698 unmodified lines
1699 }1699 }
1700 1700
1701 s->current_picture_ptr->f->pict_type = s->pict_type;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 ff_mpeg_unref_picture(s->avctx, &s->current_picture);1703 ff_mpeg_unref_picture(s->avctx, &s->current_picture);
1708 if ((ret = ff_mpeg_ref_picture(s->avctx, &s->current_picture,1704 if ((ret = ff_mpeg_ref_picture(s->avctx, &s->current_picture,

Keyboard shortcuts

General

Show keyboard shortcuts
?
Focus the current search
/

Issues and pull requests

Open filters
f

Issues, pull requests and Inbox

Select next item
j↓
Select previous item
k↑
Open selected item
Enter
Dismiss filters or clear selection
Esc

Repository code

Go to file
t