[FFmpeg-devel] [PATCH 6/7] avcodec/vc1: Remove unused hrd fields
Andreas Rheinhardt
andreas.rheinhardt at outlook.com
Thu Apr 8 22:42:19 EEST 2021
Unused since be3492ec7eb2dbb0748c123af911a06c125c90db.
Signed-off-by: Andreas Rheinhardt <andreas.rheinhardt at outlook.com>
---
libavcodec/vc1.c | 2 --
libavcodec/vc1.h | 2 --
libavcodec/vc1dec.c | 2 --
3 files changed, 6 deletions(-)
diff --git a/libavcodec/vc1.c b/libavcodec/vc1.c
index 5d854b35d2..b7140c089c 100644
--- a/libavcodec/vc1.c
+++ b/libavcodec/vc1.c
@@ -1699,8 +1699,6 @@ av_cold void ff_vc1_init_common(VC1Context *v)
{
static AVOnce init_static_once = AV_ONCE_INIT;
- v->hrd_rate = v->hrd_buffer = NULL;
-
/* defaults */
v->pq = -1;
v->mvrange = 0; /* 7.1.1.18, p80 */
diff --git a/libavcodec/vc1.h b/libavcodec/vc1.h
index 3e5368b891..9b25f0872f 100644
--- a/libavcodec/vc1.h
+++ b/libavcodec/vc1.h
@@ -322,8 +322,6 @@ typedef struct VC1Context{
uint8_t* over_flags_plane; ///< Overflags bitplane
int overflg_is_raw;
uint8_t condover;
- uint16_t *hrd_rate, *hrd_buffer;
- uint8_t *hrd_fullness;
uint8_t range_mapy_flag;
uint8_t range_mapuv_flag;
uint8_t range_mapy;
diff --git a/libavcodec/vc1dec.c b/libavcodec/vc1dec.c
index a08f7fe847..8f112bf9b2 100644
--- a/libavcodec/vc1dec.c
+++ b/libavcodec/vc1dec.c
@@ -593,8 +593,6 @@ av_cold int ff_vc1_decode_end(AVCodecContext *avctx)
for (i = 0; i < 4; i++)
av_freep(&v->sr_rows[i >> 1][i & 1]);
- av_freep(&v->hrd_rate);
- av_freep(&v->hrd_buffer);
ff_mpv_common_end(&v->s);
av_freep(&v->mv_type_mb_plane);
av_freep(&v->direct_mb_plane);
--
2.27.0
More information about the ffmpeg-devel
mailing list