History

avcodec/mpegvideo_dec: Remove redundant code to reset keyframe flag

These AVFrames are blank and therefore the flag is already unset.

Andreas Rheinhardt committed 3 years ago

Commit b00c6971 parent da4cca51 file · +0 −2Browse files

Showing the changes to libavcodec (1 of 1 file). Show all

Unified · Split

libavcodec/mpegvideo_dec.c+0−2
@@ -387,7 +387,6 @@ int ff_mpv_frame_start(MpegEncContext *s, AVCodecContext *avctx) · 386 unmodified lines
387387 s->last_picture_ptr = &s->picture[idx];
388388
389389 s->last_picture_ptr->reference = 3;
390− s->last_picture_ptr->f->flags &= ~AV_FRAME_FLAG_KEY;
391390 s->last_picture_ptr->f->pict_type = AV_PICTURE_TYPE_P;
392391
393392 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
414413 s->next_picture_ptr = &s->picture[idx];
415414
416415 s->next_picture_ptr->reference = 3;
417− s->next_picture_ptr->f->flags &= ~AV_FRAME_FLAG_KEY;
418416 s->next_picture_ptr->f->pict_type = AV_PICTURE_TYPE_P;
419417
420418 if (alloc_picture(s, s->next_picture_ptr) < 0) {

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