diff mbox series

[FFmpeg-devel,2/8] avcodec/speedhqenc: Remove always-true #if CONFIG_SPEEDHQ_ENCODER

Message ID AS8P250MB0744BB009626C9035E9E92B18F289@AS8P250MB0744.EURP250.PROD.OUTLOOK.COM
State Accepted
Commit f18f8a561c8a9449cc2f5bc66000a8fe94308eaf
Headers show
Series [FFmpeg-devel,1/8] avformat/mj2kdec: Remove always-true #if CONFIG_MJPEG_2000_DEMUXER | expand

Checks

Context Check Description
yinshiyou/make_loongarch64 success Make finished
yinshiyou/make_fate_loongarch64 success Make fate finished
andriy/make_x86 success Make finished
andriy/make_fate_x86 success Make fate finished

Commit Message

Andreas Rheinhardt Oct. 18, 2022, 1:31 p.m. UTC
This file is built iff the SpeedHQ encoder is enabled.

Signed-off-by: Andreas Rheinhardt <andreas.rheinhardt@outlook.com>
---
 libavcodec/speedhqenc.c | 4 ----
 1 file changed, 4 deletions(-)
diff mbox series

Patch

diff --git a/libavcodec/speedhqenc.c b/libavcodec/speedhqenc.c
index 4c1d76631b..527e63e602 100644
--- a/libavcodec/speedhqenc.c
+++ b/libavcodec/speedhqenc.c
@@ -27,8 +27,6 @@ 
  * SpeedHQ encoder.
  */
 
-#include "config_components.h"
-
 #include "libavutil/thread.h"
 
 #include "avcodec.h"
@@ -280,7 +278,6 @@  int ff_speedhq_mb_y_order_to_mb(int mb_y_order, int mb_height, int *first_in_sli
     return mb_y_order * 4 + slice_num;
 }
 
-#if CONFIG_SPEEDHQ_ENCODER
 const FFCodec ff_speedhq_encoder = {
     .p.name         = "speedhq",
     CODEC_LONG_NAME("NewTek SpeedHQ"),
@@ -297,4 +294,3 @@  const FFCodec ff_speedhq_encoder = {
         AV_PIX_FMT_NONE
     },
 };
-#endif