[FFmpeg-cvslog] avcodec/flvdec, intelh263dec: Remove redundant assignments

Andreas Rheinhardt git at videolan.org
Mon Oct 31 13:17:24 EET 2022


ffmpeg | branch: master | Andreas Rheinhardt <andreas.rheinhardt at outlook.com> | Fri Oct 28 12:21:02 2022 +0200| [1916ead811097bfc511509d94e17165192916a64] | committer: Andreas Rheinhardt

avcodec/flvdec, intelh263dec: Remove redundant assignments

ff_mpeg1_dc_scale_table is the default value for
[yc]_dc_scale_table (as set by ff_mpv_common_defaults()).

Signed-off-by: Andreas Rheinhardt <andreas.rheinhardt at outlook.com>

> http://git.videolan.org/gitweb.cgi/ffmpeg.git/?a=commit;h=1916ead811097bfc511509d94e17165192916a64
---

 libavcodec/flvdec.c       | 2 --
 libavcodec/intelh263dec.c | 3 ---
 2 files changed, 5 deletions(-)

diff --git a/libavcodec/flvdec.c b/libavcodec/flvdec.c
index 87c5e923ea..09fefd3d1c 100644
--- a/libavcodec/flvdec.c
+++ b/libavcodec/flvdec.c
@@ -108,8 +108,6 @@ int ff_flv_decode_picture_header(MpegEncContext *s)
                s->h263_flv - 1, s->qscale, s->picture_number);
     }
 
-    s->y_dc_scale_table = s->c_dc_scale_table = ff_mpeg1_dc_scale_table;
-
     return 0;
 }
 
diff --git a/libavcodec/intelh263dec.c b/libavcodec/intelh263dec.c
index 453b93f16c..2c216b00a6 100644
--- a/libavcodec/intelh263dec.c
+++ b/libavcodec/intelh263dec.c
@@ -122,9 +122,6 @@ int ff_intel_h263_decode_picture_header(MpegEncContext *s)
         return AVERROR_INVALIDDATA;
     s->f_code = 1;
 
-    s->y_dc_scale_table=
-    s->c_dc_scale_table= ff_mpeg1_dc_scale_table;
-
     ff_h263_show_pict_info(s);
 
     return 0;



More information about the ffmpeg-cvslog mailing list