aboutsummaryrefslogtreecommitdiffstats
path: root/libavcodec
diff options
context:
space:
mode:
authorDiego Biurrun <diego@biurrun.de>2014-07-22 11:10:13 -0700
committerDiego Biurrun <diego@biurrun.de>2014-07-23 03:16:55 -0700
commit2b6ab3a2bd7e7cee5e7a55dd2e48b8feb4a826bb (patch)
tree0644d2e16cf6591262b1249f88b10abc55bc553a /libavcodec
parent06a1d1323bc8afd03f085ae98d9b74e431b3534e (diff)
downloadffmpeg-2b6ab3a2bd7e7cee5e7a55dd2e48b8feb4a826bb.tar.gz
mpegvideo: Move QUANT_BIAS_SHIFT define to the only place it is used
Diffstat (limited to 'libavcodec')
-rw-r--r--libavcodec/mpegvideo.h2
-rw-r--r--libavcodec/mpegvideo_enc.c2
2 files changed, 3 insertions, 1 deletions
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 <limits.h>
+#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);