[FFmpeg-cvslog] avcodec/libaomenc: minor cosmetics
James Almer
git at videolan.org
Thu Mar 29 22:20:09 EEST 2018
ffmpeg | branch: master | James Almer <jamrial at gmail.com> | Thu Mar 29 16:18:27 2018 -0300| [25abaf3545f071ae137cfb66f03a2ae181bc28cd] | committer: James Almer
avcodec/libaomenc: minor cosmetics
Signed-off-by: James Almer <jamrial at gmail.com>
> http://git.videolan.org/gitweb.cgi/ffmpeg.git/?a=commit;h=25abaf3545f071ae137cfb66f03a2ae181bc28cd
---
libavcodec/libaomenc.c | 6 ++----
1 file changed, 2 insertions(+), 4 deletions(-)
diff --git a/libavcodec/libaomenc.c b/libavcodec/libaomenc.c
index 7aac019b5b..f075bf4de7 100644
--- a/libavcodec/libaomenc.c
+++ b/libavcodec/libaomenc.c
@@ -344,8 +344,7 @@ static av_cold int aom_init(AVCodecContext *avctx,
if (avctx->bit_rate) {
enccfg.rc_target_bitrate = av_rescale_rnd(avctx->bit_rate, 1, 1000,
AV_ROUND_NEAR_INF);
- } else if (enccfg.rc_end_usage == AOM_Q) {
- } else {
+ } else if (enccfg.rc_end_usage != AOM_Q) {
if (enccfg.rc_end_usage == AOM_CQ) {
enccfg.rc_target_bitrate = 1000000;
} else {
@@ -361,8 +360,7 @@ static av_cold int aom_init(AVCodecContext *avctx,
if (avctx->qmax >= 0)
enccfg.rc_max_quantizer = avctx->qmax;
- if (enccfg.rc_end_usage == AOM_CQ || enccfg.rc_end_usage == AOM_Q
- ) {
+ if (enccfg.rc_end_usage == AOM_CQ || enccfg.rc_end_usage == AOM_Q) {
if (ctx->crf < enccfg.rc_min_quantizer || ctx->crf > enccfg.rc_max_quantizer) {
av_log(avctx, AV_LOG_ERROR,
"CQ level %d must be between minimum and maximum quantizer value (%d-%d)\n",
More information about the ffmpeg-cvslog
mailing list