1
0
mirror of https://github.com/FFmpeg/FFmpeg.git synced 2025-08-10 06:10:52 +02:00

avcodec/libaomenc: minor cosmetics

Signed-off-by: James Almer <jamrial@gmail.com>
This commit is contained in:
James Almer
2018-03-29 16:18:27 -03:00
parent a8a751ce9a
commit 25abaf3545

View File

@@ -344,8 +344,7 @@ static av_cold int aom_init(AVCodecContext *avctx,
if (avctx->bit_rate) { if (avctx->bit_rate) {
enccfg.rc_target_bitrate = av_rescale_rnd(avctx->bit_rate, 1, 1000, enccfg.rc_target_bitrate = av_rescale_rnd(avctx->bit_rate, 1, 1000,
AV_ROUND_NEAR_INF); AV_ROUND_NEAR_INF);
} else if (enccfg.rc_end_usage == AOM_Q) { } else if (enccfg.rc_end_usage != AOM_Q) {
} else {
if (enccfg.rc_end_usage == AOM_CQ) { if (enccfg.rc_end_usage == AOM_CQ) {
enccfg.rc_target_bitrate = 1000000; enccfg.rc_target_bitrate = 1000000;
} else { } else {
@@ -361,8 +360,7 @@ static av_cold int aom_init(AVCodecContext *avctx,
if (avctx->qmax >= 0) if (avctx->qmax >= 0)
enccfg.rc_max_quantizer = avctx->qmax; 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) { if (ctx->crf < enccfg.rc_min_quantizer || ctx->crf > enccfg.rc_max_quantizer) {
av_log(avctx, AV_LOG_ERROR, av_log(avctx, AV_LOG_ERROR,
"CQ level %d must be between minimum and maximum quantizer value (%d-%d)\n", "CQ level %d must be between minimum and maximum quantizer value (%d-%d)\n",