summaryrefslogtreecommitdiff
path: root/libavcodec/mpegvideo_enc.c
diff options
context:
space:
mode:
authorVittorio Giovara <vittorio.giovara@gmail.com>2015-09-26 23:00:57 +0200
committerVittorio Giovara <vittorio.giovara@gmail.com>2015-09-29 14:33:01 +0200
commitcf7d2f2d2134c0854edf2db91e7436ac2bc9874f (patch)
tree1fd32f811ad4038f103e496da761b06b46244b4f /libavcodec/mpegvideo_enc.c
parent84dfc426cea7242099aea9d47121cea65dffd936 (diff)
lavc: Simplify checking quant bias option
Diffstat (limited to 'libavcodec/mpegvideo_enc.c')
-rw-r--r--libavcodec/mpegvideo_enc.c6
1 files changed, 2 insertions, 4 deletions
diff --git a/libavcodec/mpegvideo_enc.c b/libavcodec/mpegvideo_enc.c
index c46bcf4a16..862d07f978 100644
--- a/libavcodec/mpegvideo_enc.c
+++ b/libavcodec/mpegvideo_enc.c
@@ -548,11 +548,9 @@ FF_ENABLE_DEPRECATION_WARNINGS
#if FF_API_QUANT_BIAS
FF_DISABLE_DEPRECATION_WARNINGS
- if (s->intra_quant_bias == FF_DEFAULT_QUANT_BIAS &&
- avctx->intra_quant_bias != FF_DEFAULT_QUANT_BIAS)
+ if (avctx->intra_quant_bias != FF_DEFAULT_QUANT_BIAS)
s->intra_quant_bias = avctx->intra_quant_bias;
- if (s->inter_quant_bias == FF_DEFAULT_QUANT_BIAS &&
- avctx->inter_quant_bias != FF_DEFAULT_QUANT_BIAS)
+ if (avctx->inter_quant_bias != FF_DEFAULT_QUANT_BIAS)
s->inter_quant_bias = avctx->inter_quant_bias;
FF_ENABLE_DEPRECATION_WARNINGS
#endif