From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from ffbox0-bg.mplayerhq.hu (ffbox0-bg.ffmpeg.org [79.124.17.100]) by master.gitmailbox.com (Postfix) with ESMTP id F14E842547 for ; Wed, 5 Jan 2022 02:42:59 +0000 (UTC) Received: from [127.0.1.1] (localhost [127.0.0.1]) by ffbox0-bg.mplayerhq.hu (Postfix) with ESMTP id E193D68A993; Wed, 5 Jan 2022 04:42:53 +0200 (EET) Received: from mail-pg1-f177.google.com (mail-pg1-f177.google.com [209.85.215.177]) by ffbox0-bg.mplayerhq.hu (Postfix) with ESMTPS id B37E568A93E for ; Wed, 5 Jan 2022 04:42:47 +0200 (EET) Received: by mail-pg1-f177.google.com with SMTP id 8so34266941pgc.10 for ; Tue, 04 Jan 2022 18:42:47 -0800 (PST) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=x-gm-message-state:from:to:cc:subject:date:message-id:in-reply-to :references:mime-version:content-transfer-encoding; bh=jnZiA+qRUJqJDXFlzNd4UEOyRFyrTgLDmVQxh7RHdJY=; b=HY2fo2rnIF1+gvw4LVTk6FYfYPkaKq64HqIRc8KnEP6EReYgJHp0J+7JKs/tMA3vlU CdfA2uK5DKNtaR4E5uOl1oZ12texuS3cUC6vWopqrIzOBG69Em9zUm425PQv6uE75nbG nKPTC7brB2qccHQG5WxOnWoxygsRHgkQM98VxzphQNMPDSCvcDuBkRXnfd+Cj0Wl10Br 7fka6GnLegkWwJgKqrhWqSHgQHQFpc7q+uKPii0Q3qD0iYSUzRQP6O/fI6Gc9FeMFL/L HIfDWyqcnAFBNjgqc+m5gS4ahZs9Xsm4ZPb5iG0XDqi7Tm7/tbPllVYZBPoRabTo1DcD Td/g== X-Gm-Message-State: AOAM531bqrYnCQJitBY68e7YaJMJZXy33v52zknfm6aMdFBkwPxIdCIH /Em2GhwMMuD/kaVrzpIEWM2Js2sGQm4= X-Google-Smtp-Source: ABdhPJwdy07AThF+r5NHsenuyVwKxlK6S3omPyaUQ6DTC49Kfis7WhLMzVo2s9ychkXvF1t/uR6w9A== X-Received: by 2002:a05:6a00:a8e:b0:4a4:ec38:b66a with SMTP id b14-20020a056a000a8e00b004a4ec38b66amr52629476pfl.7.1641350565813; Tue, 04 Jan 2022 18:42:45 -0800 (PST) Received: from localhost (76-14-89-2.sf-cable.astound.net. [76.14.89.2]) by smtp.gmail.com with ESMTPSA id l145sm42908335pfd.117.2022.01.04.18.42.44 (version=TLS1_2 cipher=ECDHE-ECDSA-CHACHA20-POLY1305 bits=256/256); Tue, 04 Jan 2022 18:42:45 -0800 (PST) Received: by localhost (sSMTP sendmail emulation); Tue, 04 Jan 2022 18:42:42 -0800 From: pal@sandflow.com To: ffmpeg-devel@ffmpeg.org Date: Tue, 4 Jan 2022 18:42:07 -0800 Message-Id: <20220105024207.27508-2-pal@sandflow.com> X-Mailer: git-send-email 2.34.1.windows.1 In-Reply-To: <20220105024207.27508-1-pal@sandflow.com> References: <20220105024207.27508-1-pal@sandflow.com> MIME-Version: 1.0 Subject: [FFmpeg-devel] [PATCH v2 2/2] avformat/imf: Fix indentation X-BeenThere: ffmpeg-devel@ffmpeg.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: FFmpeg development discussions and patches List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Reply-To: FFmpeg development discussions and patches Cc: Pierre-Anthony Lemieux Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Errors-To: ffmpeg-devel-bounces@ffmpeg.org Sender: "ffmpeg-devel" Archived-At: List-Archive: List-Post: From: Pierre-Anthony Lemieux Signed-off-by: Pierre-Anthony Lemieux --- libavformat/imf_cpl.c | 48 +++++++++++++++++++++---------------------- 1 file changed, 24 insertions(+), 24 deletions(-) diff --git a/libavformat/imf_cpl.c b/libavformat/imf_cpl.c index f49469f56e..32e805cdd4 100644 --- a/libavformat/imf_cpl.c +++ b/libavformat/imf_cpl.c @@ -810,32 +810,32 @@ int ff_imf_parse_cpl(AVIOContext *in, FFIMFCPL **cpl) goto clean_up; } - LIBXML_TEST_VERSION - - filesize = buf.len; - doc = xmlReadMemory(buf.str, filesize, NULL, NULL, 0); - if (!doc) { - av_log(NULL, - AV_LOG_ERROR, - "XML parsing failed when reading the IMF CPL\n"); - ret = AVERROR_INVALIDDATA; - goto clean_up; - } + LIBXML_TEST_VERSION + + filesize = buf.len; + doc = xmlReadMemory(buf.str, filesize, NULL, NULL, 0); + if (!doc) { + av_log(NULL, + AV_LOG_ERROR, + "XML parsing failed when reading the IMF CPL\n"); + ret = AVERROR_INVALIDDATA; + goto clean_up; + } - if ((ret = ff_imf_parse_cpl_from_xml_dom(doc, cpl))) { - av_log(NULL, AV_LOG_ERROR, "Cannot parse IMF CPL\n"); - } else { - av_log(NULL, - AV_LOG_INFO, - "IMF CPL ContentTitle: %s\n", - (*cpl)->content_title_utf8); - av_log(NULL, - AV_LOG_INFO, - "IMF CPL Id: " FF_IMF_UUID_FORMAT "\n", - UID_ARG((*cpl)->id_uuid)); - } + if ((ret = ff_imf_parse_cpl_from_xml_dom(doc, cpl))) { + av_log(NULL, AV_LOG_ERROR, "Cannot parse IMF CPL\n"); + } else { + av_log(NULL, + AV_LOG_INFO, + "IMF CPL ContentTitle: %s\n", + (*cpl)->content_title_utf8); + av_log(NULL, + AV_LOG_INFO, + "IMF CPL Id: " FF_IMF_UUID_FORMAT "\n", + UID_ARG((*cpl)->id_uuid)); + } - xmlFreeDoc(doc); + xmlFreeDoc(doc); clean_up: av_bprint_finalize(&buf, NULL); -- 2.17.1 _______________________________________________ ffmpeg-devel mailing list ffmpeg-devel@ffmpeg.org https://ffmpeg.org/mailman/listinfo/ffmpeg-devel To unsubscribe, visit link above, or email ffmpeg-devel-request@ffmpeg.org with subject "unsubscribe".