From 857e35836c4ec85681040391c05e1f3173f08ef2 Mon Sep 17 00:00:00 2001 From: Dan Dennedy Date: Wed, 15 May 2024 16:11:18 -0700 Subject: [PATCH] clang-format --- src/modules/avformat/producer_avformat.c | 15 +++++++++------ 1 file changed, 9 insertions(+), 6 deletions(-) diff --git a/src/modules/avformat/producer_avformat.c b/src/modules/avformat/producer_avformat.c index 14bb54671..d7b169f0b 100644 --- a/src/modules/avformat/producer_avformat.c +++ b/src/modules/avformat/producer_avformat.c @@ -2663,12 +2663,15 @@ static int video_codec_init(producer_avformat self, int index, mlt_properties pr if (thread_count >= 0) codec_context->thread_count = thread_count; - // fix lowres if set too high - int lowres = mlt_properties_get_int(properties, "lowres"); - if (lowres > codec_context->codec->max_lowres) { - mlt_log_debug( MLT_PRODUCER_SERVICE( self->parent ), "clamping lowres=%i to max_lowres=%i\n", lowres, codec_context->codec->max_lowres ); - mlt_properties_set_int(properties, "lowres", codec_context->codec->max_lowres); - } + // fix lowres if set too high + int lowres = mlt_properties_get_int(properties, "lowres"); + if (lowres > codec_context->codec->max_lowres) { + mlt_log_debug(MLT_PRODUCER_SERVICE(self->parent), + "clamping lowres=%i to max_lowres=%i\n", + lowres, + codec_context->codec->max_lowres); + mlt_properties_set_int(properties, "lowres", codec_context->codec->max_lowres); + } #if USE_HWACCEL if (self->hwaccel.device_type == AV_HWDEVICE_TYPE_NONE