From 2b6ab3a2bd7e7cee5e7a55dd2e48b8feb4a826bb Mon Sep 17 00:00:00 2001 From: Diego Biurrun Date: Tue, 22 Jul 2014 11:10:13 -0700 Subject: [PATCH] mpegvideo: Move QUANT_BIAS_SHIFT define to the only place it is used --- libavcodec/mpegvideo.h | 2 +- libavcodec/mpegvideo_enc.c | 2 ++ 2 files changed, 3 insertions(+), 1 deletion(-) diff --git a/libavcodec/mpegvideo.h b/libavcodec/mpegvideo.h index 3bd87dfb09..1a7c1b15f1 100644 --- a/libavcodec/mpegvideo.h +++ b/libavcodec/mpegvideo.h @@ -430,7 +430,7 @@ typedef struct MpegEncContext { uint16_t chroma_intra_matrix[64]; uint16_t inter_matrix[64]; uint16_t chroma_inter_matrix[64]; -#define QUANT_BIAS_SHIFT 8 + int intra_quant_bias; ///< bias for the quantizer int inter_quant_bias; ///< bias for the quantizer int min_qcoeff; ///< minimum encodable coefficient diff --git a/libavcodec/mpegvideo_enc.c b/libavcodec/mpegvideo_enc.c index ea24902134..fa4840e2bf 100644 --- a/libavcodec/mpegvideo_enc.c +++ b/libavcodec/mpegvideo_enc.c @@ -58,6 +58,8 @@ #include "bytestream.h" #include +#define QUANT_BIAS_SHIFT 8 + static int encode_picture(MpegEncContext *s, int picture_number); static int dct_quantize_refine(MpegEncContext *s, int16_t *block, int16_t *weight, int16_t *orig, int n, int qscale); static int sse_mb(MpegEncContext *s);