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 E95DA42CDC for ; Tue, 3 May 2022 16:15:52 +0000 (UTC) Received: from [127.0.1.1] (localhost [127.0.0.1]) by ffbox0-bg.mplayerhq.hu (Postfix) with ESMTP id 01AD168B3AA; Tue, 3 May 2022 19:14:07 +0300 (EEST) Received: from mail-qt1-f172.google.com (mail-qt1-f172.google.com [209.85.160.172]) by ffbox0-bg.mplayerhq.hu (Postfix) with ESMTPS id 4E86F68B3BB for ; Tue, 3 May 2022 19:14:01 +0300 (EEST) Received: by mail-qt1-f172.google.com with SMTP id h3so9262988qtn.4 for ; Tue, 03 May 2022 09:14:00 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20210112; h=from:to:cc:subject:date:message-id:in-reply-to:references :mime-version:content-transfer-encoding; bh=NfIgOzyaw8pW9qTR/AXEV6xp3G7BYhhXgdd8k1Ctd5M=; b=La6/NeAta1kyt8LjRYfLDB5MK7b97Vt/JS/mESB+OV2utIxGtlsiV5eeG4GJxmxntw vUcF9xDMkuR1nevqxozMvAbI3Gy0RHcsZ2gf87mXt9ub9Ou8FKNzPuDvSRbthjnsHXLx m8PNsa+r2Z5U3v4HNrw+ytX4FJ/2I5PNFHPKxfwg7TwxviSWMRYDcLOKKgkZ0YHzFill 79KYhDESjfzV5SJTO0TzrIvJOpmrbCWNBX4DgXmHoQcSU71FwyLFiP8MgDa9sRJJeSO1 kJAF4IUk/YyVM+dCJNegUFUfwIcNvjswzkbAY2P7hBVeTCCVIhAidG1yPHCBkY2VHVFi wAWw== 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=NfIgOzyaw8pW9qTR/AXEV6xp3G7BYhhXgdd8k1Ctd5M=; b=2NCdiuEU4VSs+zd37wGG9Pes3K6zut51Cx9wBsR5wDXpr67NbtX5HVBow6NzyIKv5B qqk7ZfGcsrBT+1nDeuZE4tJXdkkZfiAex144fEr62/lWHgEDHy2MRg1gFbRNeIdasgtD 9GtShe39+d+o0xnPYFlDNyeh+CJXWvmedQ7Ys/xnwwRJxc57rLf6jZGwt0FhxaKCtsZ5 qBWwF53lY7KgBFRahZ9qk022E2ELBiVYfDXyAgV6S8KPyhVC9JZ5l51BQVXDr7B0KpRw eSy1uS50HyS7Ov3hsKWGX0p9PmfoQBEBaGbrWB42PzaF7fsyxmzXPkJ0gKBkbJzZ2BSq 4V3w== X-Gm-Message-State: AOAM533uOEn8mODQlpJQcdPFabH45Yt6Y1LPwkNZmL8p390xOzrHovtg 7Z3zNqsl9fErm75hjdWTWltC/RBTc/Ix X-Google-Smtp-Source: ABdhPJyREG0I836AdDKqMBvLKMl+Ri9DAmpF+RZwDZUNmM4indGsJnj7JxSu4NVqkQiPLWa/ZsCsOw== X-Received: by 2002:a05:622a:1451:b0:2f3:9e80:9b56 with SMTP id v17-20020a05622a145100b002f39e809b56mr13107196qtx.490.1651594439749; Tue, 03 May 2022 09:13:59 -0700 (PDT) Received: from thinkpad.. ([66.220.203.136]) by smtp.gmail.com with ESMTPSA id fp35-20020a05622a50a300b002f39b99f67asm5812731qtb.20.2022.05.03.09.13.59 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 03 May 2022 09:13:59 -0700 (PDT) From: Traian Coza To: ffmpeg-devel@ffmpeg.org Date: Tue, 3 May 2022 12:13:28 -0400 Message-Id: <20220503161328.842587-13-traian.coza@gmail.com> X-Mailer: git-send-email 2.34.1 In-Reply-To: <20220503161328.842587-1-traian.coza@gmail.com> References: <20220503161328.842587-1-traian.coza@gmail.com> MIME-Version: 1.0 Subject: [FFmpeg-devel] [PATCH 12/12] Added more logging 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: Traian Coza 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: --- fftools/text_to_bitmap.c | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/fftools/text_to_bitmap.c b/fftools/text_to_bitmap.c index 0f165e7722..e05e485713 100644 --- a/fftools/text_to_bitmap.c +++ b/fftools/text_to_bitmap.c @@ -122,7 +122,8 @@ void init_ass_context(InputStream *ist, OutputStream *ost) } if (width && height) break; - // TODO Error: Cannot render without a width and height + av_log(NULL, AV_LOG_ERROR, "Cannot render text subtitle without frame size\n"); + return; } while (0); context->renderer = ass_renderer_init(context->library); @@ -197,7 +198,8 @@ void render_avsub_ass(ASS_Context *context, AVSubtitle *sub) ASS_Image *image = ass_render_frame(context->renderer, track, track->events[0].Start + track->events[0].Duration / 2, NULL); - if (image == NULL) av_log(NULL, AV_LOG_WARNING, "failed to render ass\n"); + if (image == NULL) av_log(NULL, AV_LOG_WARNING, + "failed to render ass: %s\n", rect->ass); rect->x = image ? image->dst_x : 0; rect->w = 0; rect->y = image ? image->dst_y : 0; rect->h = 0; -- 2.34.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".