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 4FECF481A8 for ; Sat, 10 Feb 2024 17:40:15 +0000 (UTC) Received: from [127.0.1.1] (localhost [127.0.0.1]) by ffbox0-bg.mplayerhq.hu (Postfix) with ESMTP id 229CB68CE0E; Sat, 10 Feb 2024 19:40:13 +0200 (EET) Received: from mail-pl1-f180.google.com (mail-pl1-f180.google.com [209.85.214.180]) by ffbox0-bg.mplayerhq.hu (Postfix) with ESMTPS id 6345168C4E0 for ; Sat, 10 Feb 2024 19:40:06 +0200 (EET) Received: by mail-pl1-f180.google.com with SMTP id d9443c01a7336-1d72f71f222so17192225ad.1 for ; Sat, 10 Feb 2024 09:40:06 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20230601; t=1707586803; x=1708191603; darn=ffmpeg.org; h=content-transfer-encoding:mime-version:message-id:date:subject:to :from:from:to:cc:subject:date:message-id:reply-to; bh=F1WYnyn+HL09tngbWih4G/o2pLNxyfLGpQ0VOa9j63U=; b=LwQHxv4KQltNYtWZVKntXXPnc0rfoJZkoUCf0fVm1ktK9RTH5NqQoBVpeyHZCGaHeX C4USmjULYWB9d/Ry170wnVkCw0PtOia7ZD4J1DHeiDPwq69ZQcaOinv790BtwyYBO1C8 UxjJb3WbEUTC0XjdnkLeXpGCJtoB41fdmqMuJ2zOcgTXhjkGRm2j7wfoWnM5vu2QOZUK 8/Bt4YbxnQ6sxRpA9ZELLR4YXHtwsgmjmI3vixpWC7BqJoL4rIB3cvsV06Ax+TnH1HL8 di/TuRQe0UptVx28Q/+6ljyKt288lovaxbLefTIEPFjbebh9DVkSaMyS76EgLdd45Dwc VDRA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1707586803; x=1708191603; h=content-transfer-encoding:mime-version:message-id:date:subject:to :from:x-gm-message-state:from:to:cc:subject:date:message-id:reply-to; bh=F1WYnyn+HL09tngbWih4G/o2pLNxyfLGpQ0VOa9j63U=; b=XC0QlknCneYAj114Poiia5Mkvi1h1p4kpXGy+ji1tabxvzicPJw2uM2vNT0GVjQpEX Z6X4R9Hw/CMvEt4XwP02XO06iIX2KTVXMuPnPB0nA1Cwq4jZzTeEI0+9IcbTYv1JMEaN Fq0TQ87aH3I3wuPr0fRs0LVhzqxnk2ROjula0oyKYJl/ScH2Yd7vHtjTX0y4t6PGL/+V ZZzfcqq8xH83DygbG0RsxDUX0j8MTXAsSyKrh4xDTngnsSvfeaFKR7FeiacVG7oW10rz sPRlKBibm8RYOwIKZp8cVdmj1vbmhTc5HZfj6C1ombGSTDDhiDMaovAaW0CMsNH733dI 6c5w== X-Gm-Message-State: AOJu0YxHGh4NzBS3G3hON7PzmsH08JP1YGl5DY4RhEhqLX5+Ksr1Q3/t VsK5Rsy+1Jl6j2cZPgm/Nv6r/96qrMZrGjQDfMPSUSN1QLFGvpRXfaafe9Dl X-Google-Smtp-Source: AGHT+IEx+SVcZE6o8iU/3Um+YjWwrpA+5cp9+P+gRFCTiKqmet18DIYeJbWu/SUg2acsw2+LmVIcWQ== X-Received: by 2002:a05:6a21:3418:b0:19e:488f:692d with SMTP id yn24-20020a056a21341800b0019e488f692dmr2161161pzb.7.1707586803471; Sat, 10 Feb 2024 09:40:03 -0800 (PST) Received: from localhost.localdomain (host197.190-225-105.telecom.net.ar. [190.225.105.197]) by smtp.gmail.com with ESMTPSA id sx3-20020a17090b2cc300b0029604b0b7d1sm3803425pjb.15.2024.02.10.09.40.02 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Sat, 10 Feb 2024 09:40:03 -0800 (PST) From: James Almer To: ffmpeg-devel@ffmpeg.org Date: Sat, 10 Feb 2024 14:39:41 -0300 Message-ID: <20240210173941.61540-1-jamrial@gmail.com> X-Mailer: git-send-email 2.43.0 MIME-Version: 1.0 Subject: [FFmpeg-devel] [PATCH] avcodec/avcodec: don't print coded dimensions if not set 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 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: The avctx passed to avcodec_string() may have unset coded dimensions, as is the case when called by av_dump_format() where the streams had all the needed information at the container level, and as such no frames were decoded internally. Signed-off-by: James Almer --- libavcodec/avcodec.c | 1 + 1 file changed, 1 insertion(+) diff --git a/libavcodec/avcodec.c b/libavcodec/avcodec.c index b6d27ada21..a13b781996 100644 --- a/libavcodec/avcodec.c +++ b/libavcodec/avcodec.c @@ -625,6 +625,7 @@ void avcodec_string(char *buf, int buf_size, AVCodecContext *enc, int encode) enc->width, enc->height); if (av_log_get_level() >= AV_LOG_VERBOSE && + enc->coded_width && enc->coded_height && (enc->width != enc->coded_width || enc->height != enc->coded_height)) av_bprintf(&bprint, " (%dx%d)", -- 2.43.0 _______________________________________________ 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".