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

Unified · Split

libavcodec/mpegvideo_dec.c+0−2
@@ -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) {

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