From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from ffbox0-bg.ffmpeg.org (ffbox0-bg.ffmpeg.org [79.124.17.100]) by master.gitmailbox.com (Postfix) with ESMTPS id 996D74C167 for ; Wed, 8 Oct 2025 15:56:10 +0000 (UTC) Authentication-Results: ffbox; dkim=fail (body hash mismatch (got b'KZ+7yMmf1eYMu7zi9PHtVSp2yLce8StnogilCYoA2EE=', expected b'6mmctKK8HNsoM/daP8RJ4iKj6TSX/g2UWDRXJGzEoFQ=')) header.d=ffmpeg.org header.i=@ffmpeg.org header.a=rsa-sha256 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=ffmpeg.org; i=@ffmpeg.org; q=dns/txt; s=mail; t=1759938962; h=mime-version : to : date : message-id : reply-to : subject : list-id : list-archive : list-archive : list-help : list-owner : list-post : list-subscribe : list-unsubscribe : from : cc : content-type : content-transfer-encoding : from; bh=KZ+7yMmf1eYMu7zi9PHtVSp2yLce8StnogilCYoA2EE=; b=kjkMqihPVLKUg3L7CZQhj1CjDEFvRYYLiWHWIVggyoRhB4lnk4luhYi3N5qCWQyvJBKo7 2ut1Im8xDb27ySsRCcZHDTW/bU/JR64b07vJx01jdJ8EV2cjuzMQaoIn87wUS8CR2aXxPE/ 1f5J9tOLVV3oq7POUATmD9OuubPr8nFQy1lk+N1rnKhG2YlplFRjL4GfLN2Y2qTafnC22cv x4BBNFf6r1SI/4E0wFJBS418arA6WRtceSVgQ7MBdNd0N8Nbbpm51eNhjiZiJXrVwm3OUGP QeO+AUbDAZstbbgv47OltZ9/A47elNFg+x1vjbrP5si4nm8qJGW8yF8enqDw== Received: from [172.18.0.2] (unknown [172.19.0.4]) by ffbox0-bg.ffmpeg.org (Postfix) with ESMTP id A624568F32B; Wed, 8 Oct 2025 18:56:02 +0300 (EEST) ARC-Seal: i=1; cv=none; a=rsa-sha256; d=ffmpeg.org; s=arc; t=1759938948; b=LX4Nq6QFs1sB/3a47ogZrfqe68nTTQQUstm83DkcFIccnnOUP9g8tt/oiQgDVu1LAR0Uv KGkz52P/IYGMZhLUmdIJxSd5eEuf/hX+SSlr2VRpCFrzvEDsFAMik2rRd08mN2Orw+ntVNs QF+Xw7I73qw1QkfwtSgLmh7dA0mANQZld23e8mmBWmTzcDw8CiAvikJmZ88ialHe2Xq3FHL YP4WETKOX9ZP2e/mrgmhKVLl0NyGn8UARYpMj1uOhKvIwlA37v5OKBI1xkfinNkF72C491y w1e++hbyX4e6ZJKP4hKxT59xVcjUch6uLK/Jbr+I3KV9zji2ne90i2qBbpEg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=ffmpeg.org; s=arc; t=1759938948; h=from : sender : reply-to : subject : date : message-id : to : cc : mime-version : content-type : content-transfer-encoding : content-id : content-description : resent-date : resent-from : resent-sender : resent-to : resent-cc : resent-message-id : in-reply-to : references : list-id : list-help : list-unsubscribe : list-subscribe : list-post : list-owner : list-archive; bh=E3mkAnwkQlInx9KtJ27wjlD1RfYFKhESfKSSuhjjIfM=; b=RWgEFTYJ/JCDheb/fXKTsZNEKfpI5fnYXZzdrZTuSj2uLV1LTqhsxmpjfWF5yYJbJ4jO0 8m8tYMPqQF52j7hWoyH1+HUpj1hd+doVjzsb/Ry166vXbijs4klADmkaE3ys2DqmOoJchp0 K8jEf6wN7ljF4UfCH1G/PGJ/kHDGOSmKJa6AApQBT3aV4RSNHJ8JKE5qkmsj/zgP2TmhFNk z+SGs8PUeAo+YHr+6YobueKLfoP+2XfC3GLIFp6RLzv2y09pgfCi4VJ3zT6eUX9CRl4x+hh bYJ4HLIc+/6DxI4IsrjNF82+0EHBr+QyFDuKbleUSZmCteKoFy7S9/oT/hFg== ARC-Authentication-Results: i=1; ffmpeg.org; dkim=pass header.d=ffmpeg.org header.i=@ffmpeg.org; arc=none; dmarc=pass header.from=ffmpeg.org policy.dmarc=quarantine Authentication-Results: ffmpeg.org; dkim=pass header.d=ffmpeg.org header.i=@ffmpeg.org; arc=none (Message is not ARC signed); dmarc=pass (Used From Domain Record) header.from=ffmpeg.org policy.dmarc=quarantine DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=ffmpeg.org; i=@ffmpeg.org; q=dns/txt; s=mail; t=1759938941; h=content-type : mime-version : content-transfer-encoding : from : to : reply-to : subject : date : from; bh=6mmctKK8HNsoM/daP8RJ4iKj6TSX/g2UWDRXJGzEoFQ=; b=yRDhBrR9SBFTnhnIsEhrrB87SE2BY167Ko5pttQa1Yu8ue1NP8C7MynOiykwZIYWlZLdo P9DoMcjnJX+H0GYyI3wCAX1p04WTqugIrF+A59Y/+djYWgcT7eL1Rax/tVgDhhwTOdfCIFO U34p3jadEnRiwApIQ2WUi6K27ws2rHgjsAuN9Z0vhkveoUnP9jsW+ZbJDUsLFmz+XE6u6OQ ySaSONAOmOm4yOmfuuBBrPuj+oe5Wdjhdxbb0/NQQp6kvEklDBQT58ne/jSrIe2ZBuXxC9z v4NtfKScxeRLX88WTSZb+lAXY2NYnG+ZlDYOAgA+b1MTMEF2vburCSZ3pDDA== Received: from be50bb5a3685 (code.ffmpeg.org [188.245.149.3]) by ffbox0-bg.ffmpeg.org (Postfix) with ESMTPS id 48B7F68F26C for ; Wed, 8 Oct 2025 18:55:41 +0300 (EEST) MIME-Version: 1.0 To: ffmpeg-devel@ffmpeg.org Date: Wed, 08 Oct 2025 15:55:40 -0000 Message-ID: <175993894139.65.13012520161862592685@bf249f23a2c8> Message-ID-Hash: QAEWXRH6PVR4ZXJSADPE5BXT5DF5KSBQ X-Message-ID-Hash: QAEWXRH6PVR4ZXJSADPE5BXT5DF5KSBQ X-MailFrom: code@ffmpeg.org X-Mailman-Rule-Misses: dmarc-mitigation; no-senders; approved; loop; banned-address; header-match-ffmpeg-devel.ffmpeg.org-0; header-match-ffmpeg-devel.ffmpeg.org-1; header-match-ffmpeg-devel.ffmpeg.org-2; header-match-ffmpeg-devel.ffmpeg.org-3; emergency; member-moderation; nonmember-moderation; administrivia; implicit-dest; max-recipients; max-size; news-moderation; no-subject; digests; suspicious-header X-Mailman-Version: 3.3.10 Precedence: list Reply-To: FFmpeg development discussions and patches Subject: [FFmpeg-devel] [PATCH] avformat/mov: fix missing video size when some decoders are disabled (PR #20669) List-Id: FFmpeg development discussions and patches Archived-At: Archived-At: List-Archive: List-Archive: List-Help: List-Owner: List-Post: List-Subscribe: List-Unsubscribe: From: Zhao Zhili via ffmpeg-devel Cc: Zhao Zhili Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Archived-At: List-Archive: List-Post: PR #20669 opened by Zhao Zhili (quink) URL: https://code.ffmpeg.org/FFmpeg/FFmpeg/pulls/20669 Patch URL: https://code.ffmpeg.org/FFmpeg/FFmpeg/pulls/20669.patch Fix #20667 The first version of patch was right, sorry I suggested the wrong direction. https://patchwork.ffmpeg.org/project/ffmpeg/patch/20250722124552.885-1-15083277223@163.com/ >>From e47f7019bf56b998a142675356a98b94065a3476 Mon Sep 17 00:00:00 2001 From: Zhao Zhili Date: Wed, 8 Oct 2025 23:31:11 +0800 Subject: [PATCH] avformat/mov: fix missing video size when some decoders are disabled Fix #20667 --- libavformat/mov.c | 10 ++++++++-- 1 file changed, 8 insertions(+), 2 deletions(-) diff --git a/libavformat/mov.c b/libavformat/mov.c index 7fe4678234..922e001e5e 100644 --- a/libavformat/mov.c +++ b/libavformat/mov.c @@ -5243,16 +5243,22 @@ static int mov_read_trak(MOVContext *c, AVIOContext *pb, MOVAtom atom) #endif } +#if CONFIG_H261_DECODER || CONFIG_H263_DECODER || CONFIG_MPEG4_DECODER switch (st->codecpar->codec_id) { +#if CONFIG_H261_DECODER case AV_CODEC_ID_H261: +#endif +#if CONFIG_H263_DECODER case AV_CODEC_ID_H263: +#endif +#if CONFIG_MPEG4_DECODER case AV_CODEC_ID_MPEG4: +#endif st->codecpar->width = 0; /* let decoder init width/height */ st->codecpar->height= 0; break; - default: - break; } +#endif // If the duration of the mp3 packets is not constant, then they could need a parser if (st->codecpar->codec_id == AV_CODEC_ID_MP3 -- 2.49.1 _______________________________________________ ffmpeg-devel mailing list -- ffmpeg-devel@ffmpeg.org To unsubscribe send an email to ffmpeg-devel-leave@ffmpeg.org