[FFmpeg-devel] [PATCH 17/17] avcodec/speedhq: Remove unused ff_rl_speedhq

Andreas Rheinhardt andreas.rheinhardt at outlook.com
Sun Oct 23 22:36:10 EEST 2022


Signed-off-by: Andreas Rheinhardt <andreas.rheinhardt at outlook.com>
---
 libavcodec/speedhq.c    | 9 ---------
 libavcodec/speedhq.h    | 3 ---
 libavcodec/speedhqdec.c | 1 -
 3 files changed, 13 deletions(-)

diff --git a/libavcodec/speedhq.c b/libavcodec/speedhq.c
index 46ff0cfc53..eb7de03116 100644
--- a/libavcodec/speedhq.c
+++ b/libavcodec/speedhq.c
@@ -20,7 +20,6 @@
  */
 
 #include <stdint.h>
-#include "rl.h"
 #include "speedhq.h"
 
 /* AC codes: Very similar but not identical to MPEG-2. */
@@ -97,11 +96,3 @@ const uint8_t ff_speedhq_run[121] = {
     23, 24, 25, 26, 27, 28, 29, 30,
     31,
 };
-
-RLTable ff_rl_speedhq = {
-    121,
-    121,
-    ff_speedhq_vlc_table,
-    ff_speedhq_run,
-    ff_speedhq_level,
-};
diff --git a/libavcodec/speedhq.h b/libavcodec/speedhq.h
index 8bc22ab0d7..c40991b8b5 100644
--- a/libavcodec/speedhq.h
+++ b/libavcodec/speedhq.h
@@ -22,7 +22,6 @@
 #define AVCODEC_SPEEDHQ_H
 
 #include <stdint.h>
-#include "rl.h"
 #include "libavutil/attributes_internal.h"
 
 #define SPEEDHQ_RL_NB_ELEMS 121
@@ -31,8 +30,6 @@ FF_VISIBILITY_PUSH_HIDDEN
 extern const uint8_t ff_speedhq_run[SPEEDHQ_RL_NB_ELEMS];
 extern const uint8_t ff_speedhq_level[SPEEDHQ_RL_NB_ELEMS];
 extern const uint16_t ff_speedhq_vlc_table[SPEEDHQ_RL_NB_ELEMS + 2][2];
-
-extern RLTable attribute_visibility_hidden ff_rl_speedhq;
 FF_VISIBILITY_POP_HIDDEN
 
 #endif /* AVCODEC_SPEEDHQ_H */
diff --git a/libavcodec/speedhqdec.c b/libavcodec/speedhqdec.c
index 0c5942e677..623fa340d5 100644
--- a/libavcodec/speedhqdec.c
+++ b/libavcodec/speedhqdec.c
@@ -39,7 +39,6 @@
 #include "mathops.h"
 #include "mpeg12data.h"
 #include "mpeg12vlc.h"
-#include "rl.h"
 #include "speedhq.h"
 
 #define MAX_INDEX (64 - 1)
-- 
2.34.1



More information about the ffmpeg-devel mailing list