[FFmpeg-cvslog] avcodec/mpeg12dec: Remove write-only assignments
Andreas Rheinhardt
git at videolan.org
Tue Mar 4 14:35:13 EET 2025
ffmpeg | branch: master | Andreas Rheinhardt <andreas.rheinhardt at outlook.com> | Mon Jul 8 14:55:45 2024 +0200| [db8546dff71475ce34fd7658c3c8da53aa03afbe] | committer: Andreas Rheinhardt
avcodec/mpeg12dec: Remove write-only assignments
This decoder unquantizes while parsing blocks
and does not use dct_unquantize_mpeg1_intra
(which uses *_dc_scale) at all.
repeat_field was unused since
e0a3d744a0d5a9a25fb85c9bba17e3b07d3ba29b.
Signed-off-by: Andreas Rheinhardt <andreas.rheinhardt at outlook.com>
> http://git.videolan.org/gitweb.cgi/ffmpeg.git/?a=commit;h=db8546dff71475ce34fd7658c3c8da53aa03afbe
---
libavcodec/mpeg12dec.c | 4 ----
1 file changed, 4 deletions(-)
diff --git a/libavcodec/mpeg12dec.c b/libavcodec/mpeg12dec.c
index 262e213a61..48b35ed794 100644
--- a/libavcodec/mpeg12dec.c
+++ b/libavcodec/mpeg12dec.c
@@ -72,7 +72,6 @@ enum Mpeg2ClosedCaptionsFormat {
typedef struct Mpeg1Context {
MpegEncContext mpeg_enc_ctx;
- int repeat_field; /* true if we must repeat the field */
AVPanScan pan_scan; /* some temporary storage for the panscan */
enum AVStereo3DType stereo3d_type;
int has_stereo3d;
@@ -781,7 +780,6 @@ static av_cold int mpeg_decode_init(AVCodecContext *avctx)
ff_mpeg12_init_vlcs();
s2->chroma_format = 1;
- s->repeat_field = 0;
avctx->color_range = AVCOL_RANGE_MPEG;
return 0;
}
@@ -1050,8 +1048,6 @@ static int mpeg1_decode_picture(AVCodecContext *avctx, const uint8_t *buf,
av_log(avctx, AV_LOG_DEBUG,
"vbv_delay %d, ref %d type:%d\n", vbv_delay, ref, s->pict_type);
- s->y_dc_scale = 8;
- s->c_dc_scale = 8;
return 0;
}
More information about the ffmpeg-cvslog
mailing list