]> git.sesse.net Git - ffmpeg/commitdiff
configure, libavcodec/speedhq: Fix compiling SpeedHQ encoder
authorAndreas Rheinhardt <andreas.rheinhardt@gmail.com>
Thu, 10 Dec 2020 08:41:07 +0000 (09:41 +0100)
committerAndreas Rheinhardt <andreas.rheinhardt@gmail.com>
Thu, 31 Dec 2020 11:06:04 +0000 (12:06 +0100)
Reviewed-by: Paul B Mahol <onemda@gmail.com>
Signed-off-by: Andreas Rheinhardt <andreas.rheinhardt@gmail.com>
configure
libavcodec/speedhq.c

index df42f37d083c6f3877ca7b2d3322af9eedf61b7e..edd257052e1a607476bb61add083ea3d11b1e481 100755 (executable)
--- a/configure
+++ b/configure
@@ -2847,6 +2847,7 @@ sonic_encoder_select="golomb rangecoder"
 sonic_ls_encoder_select="golomb rangecoder"
 sp5x_decoder_select="mjpeg_decoder"
 speedhq_decoder_select="mpegvideo"
+speedhq_encoder_select="mpegvideoenc"
 srgc_decoder_deps="zlib"
 svq1_decoder_select="hpeldsp"
 svq1_encoder_select="hpeldsp me_cmp mpegvideoenc"
index 0c08894315204f13cc142ca88da0a05cd1ea8d8b..221a70b3e9f2c3a67968edd08fb523d15ccb91de 100644 (file)
@@ -26,6 +26,7 @@
 
 #define BITSTREAM_READER_LE
 
+#include "config.h"
 #include "libavutil/attributes.h"
 
 #include "avcodec.h"
@@ -140,6 +141,7 @@ RLTable ff_rl_speedhq = {
     speedhq_level,
 };
 
+#if CONFIG_SPEEDHQ_DECODER
 /* NOTE: The first element is always 16, unscaled. */
 static const uint8_t unscaled_quant_matrix[64] = {
     16, 16, 19, 22, 26, 27, 29, 34,
@@ -656,3 +658,4 @@ AVCodec ff_speedhq_decoder = {
     .decode         = speedhq_decode_frame,
     .capabilities   = AV_CODEC_CAP_DR1,
 };
+#endif /* CONFIG_SPEEDHQ_DECODER */