summaryrefslogtreecommitdiff
path: root/libavcodec/qsvenc.c
diff options
context:
space:
mode:
authorLuca Barbato <lu_zero@gentoo.org>2016-12-14 11:58:18 +0100
committerLuca Barbato <lu_zero@gentoo.org>2017-01-13 08:42:10 +0100
commitf8f7ad758d0e1f36915467567f4d75541d98c12f (patch)
treedda324c477d83577df36301cb9c1bbd9743150a9 /libavcodec/qsvenc.c
parent1202b712690c14f0efb06e4ad8b06c5b3df6822a (diff)
qsv: Set the correct range for la_depth
Setting an invalid range for it makes the encoder behave inconsistently.
Diffstat (limited to 'libavcodec/qsvenc.c')
-rw-r--r--libavcodec/qsvenc.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/libavcodec/qsvenc.c b/libavcodec/qsvenc.c
index d680fc8cbc..85af146ad8 100644
--- a/libavcodec/qsvenc.c
+++ b/libavcodec/qsvenc.c
@@ -273,7 +273,7 @@ static int select_rc_mode(AVCodecContext *avctx, QSVEncContext *q)
const char *rc_desc;
mfxU16 rc_mode;
- int want_la = q->la_depth >= 0;
+ int want_la = q->la_depth >= 10;
int want_qscale = !!(avctx->flags & AV_CODEC_FLAG_QSCALE);
int want_vcm = q->vcm;