]> git.sesse.net Git - ffmpeg/commitdiff
avcodec/h263dec, mpeg12dec: Remove redundant writes
authorAndreas Rheinhardt <andreas.rheinhardt@outlook.com>
Tue, 6 Apr 2021 21:32:57 +0000 (23:32 +0200)
committerAndreas Rheinhardt <andreas.rheinhardt@outlook.com>
Mon, 12 Apr 2021 16:29:10 +0000 (18:29 +0200)
ff_mpv_decode_init() already sets MpegEncContext.codec_id.

Signed-off-by: Andreas Rheinhardt <andreas.rheinhardt@outlook.com>
libavcodec/h263dec.c
libavcodec/mpeg12dec.c

index e8b4d83e6ef4695f5aa1caa11b2ad4b9c6f3a7ae..192cc487da53382052fc2e402e470a134cee8582 100644 (file)
@@ -130,7 +130,6 @@ av_cold int ff_h263_decode_init(AVCodecContext *avctx)
                avctx->codec->id);
         return AVERROR(ENOSYS);
     }
-    s->codec_id    = avctx->codec->id;
 
     if (avctx->codec_tag == AV_RL32("L263") || avctx->codec_tag == AV_RL32("S263"))
         if (avctx->extradata_size == 56 && avctx->extradata[0] == 1)
index 94221da2c158255e3b1db73299584f448ce634a5..2d2b7517ad0c0d44e8bb457cdc9a08448a3a0921 100644 (file)
@@ -1067,7 +1067,6 @@ static av_cold int mpeg_decode_init(AVCodecContext *avctx)
     s->mpeg_enc_ctx_allocated      = 0;
     s->mpeg_enc_ctx.picture_number = 0;
     s->repeat_field                = 0;
-    s->mpeg_enc_ctx.codec_id       = avctx->codec->id;
     avctx->color_range             = AVCOL_RANGE_MPEG;
     return 0;
 }