diff options
author | Andreas Rheinhardt <andreas.rheinhardt@outlook.com> | 2023-10-03 17:14:15 +0200 |
---|---|---|
committer | Andreas Rheinhardt <andreas.rheinhardt@outlook.com> | 2023-10-05 22:05:21 +0200 |
commit | f0f6acde1ac41b9313400463da725993cbf9b8d1 (patch) | |
tree | a79ef6ba8385b5dc317879200da9ddb74363f90b /libavcodec/vc1dec.c | |
parent | 951bcc3c0335cfdac130a359a93c1b3e3c2a0550 (diff) | |
download | ffmpeg-f0f6acde1ac41b9313400463da725993cbf9b8d1.tar.gz |
avcodec/h261dec, mpeg12dec, vc1dec: Remove setting write-only flags
These flags will be overwritten later in ff_mpv_frame_start().
Reviewed-by: Michael Niedermayer <michael@niedermayer.cc>
Signed-off-by: Andreas Rheinhardt <andreas.rheinhardt@outlook.com>
Diffstat (limited to 'libavcodec/vc1dec.c')
-rw-r--r-- | libavcodec/vc1dec.c | 7 |
1 files changed, 0 insertions, 7 deletions
diff --git a/libavcodec/vc1dec.c b/libavcodec/vc1dec.c index a4f2d30e22..534128d6ee 100644 --- a/libavcodec/vc1dec.c +++ b/libavcodec/vc1dec.c @@ -1058,13 +1058,6 @@ static int vc1_decode_frame(AVCodecContext *avctx, AVFrame *pict, goto err; } - // for skipping the frame - s->current_picture.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; - /* skip B-frames if we don't have reference frames */ if (!s->last_picture_ptr && s->pict_type == AV_PICTURE_TYPE_B) { av_log(v->s.avctx, AV_LOG_DEBUG, "Skipping B frame without reference frames\n"); |