diff mbox series

[FFmpeg-devel,7/7] avcodec/internal: Move FF_DEFAULT_QUANT_BIAS to mpegvideoenc.h

Message ID AS1PR01MB9564E93941F75E989ECDA69C8F129@AS1PR01MB9564.eurprd01.prod.exchangelabs.com
State Accepted
Commit fa989df1c68527bde027623b3902edf96b9845c5
Headers show
Series [FFmpeg-devel,1/3] avcodec/internal: Move FF_CODEC_CAP_* to a new header codec_internal.h | expand

Checks

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

Commit Message

Andreas Rheinhardt March 17, 2022, 12:43 p.m. UTC
Only used there.

Signed-off-by: Andreas Rheinhardt <andreas.rheinhardt@outlook.com>
---
 libavcodec/internal.h     | 2 --
 libavcodec/mpegvideoenc.h | 3 ++-
 2 files changed, 2 insertions(+), 3 deletions(-)
diff mbox series

Patch

diff --git a/libavcodec/internal.h b/libavcodec/internal.h
index 351c057d01..badca4c9dd 100644
--- a/libavcodec/internal.h
+++ b/libavcodec/internal.h
@@ -35,8 +35,6 @@ 
 #include "bsf.h"
 #include "config.h"
 
-#define FF_DEFAULT_QUANT_BIAS 999999
-
 #define FF_QSCALE_TYPE_MPEG1 0
 #define FF_QSCALE_TYPE_MPEG2 1
 #define FF_QSCALE_TYPE_H264  2
diff --git a/libavcodec/mpegvideoenc.h b/libavcodec/mpegvideoenc.h
index 9619f6787a..fae41457bf 100644
--- a/libavcodec/mpegvideoenc.h
+++ b/libavcodec/mpegvideoenc.h
@@ -29,7 +29,6 @@ 
 #define AVCODEC_MPEGVIDEOENC_H
 
 #include "libavutil/opt.h"
-#include "internal.h"
 #include "mpegvideo.h"
 
 #define UNI_AC_ENC_INDEX(run,level) ((run)*128 + (level))
@@ -42,6 +41,8 @@ 
 #define FF_MPV_FLAG_NAQ          0x0010
 #define FF_MPV_FLAG_MV0          0x0020
 
+#define FF_DEFAULT_QUANT_BIAS 999999
+
 #define FF_MPV_OPT_CMP_FUNC \
 { "sad",    "Sum of absolute differences, fast", 0, AV_OPT_TYPE_CONST, {.i64 = FF_CMP_SAD }, INT_MIN, INT_MAX, FF_MPV_OPT_FLAGS, "cmp_func" }, \
 { "sse",    "Sum of squared errors", 0, AV_OPT_TYPE_CONST, {.i64 = FF_CMP_SSE }, INT_MIN, INT_MAX, FF_MPV_OPT_FLAGS, "cmp_func" }, \