Message ID | 20241007230505.27623-6-marth64@proxyid.net |
---|---|
State | New |
Headers | show
Delivered-To: ffmpegpatchwork2@gmail.com Received: by 2002:a59:bc50:0:b0:48e:c0f8:d0de with SMTP id m16csp43302vqy; Mon, 7 Oct 2024 16:06:14 -0700 (PDT) X-Forwarded-Encrypted: i=2; AJvYcCWzGwW42+xFd9U6Csqkz3CNssXT1Xyi0N60IpNZsa5EqEInwMyTiZd9s4+MvL8+KFohGnQ3DkD35YiQaCYcI43i@gmail.com X-Google-Smtp-Source: AGHT+IFi0jW3mcNYxYdZpHD4+pW81GqERcyt1dewjh/I6X10n+faOkVUJ3leNiCg10AaLhDufSlv X-Received: by 2002:a5d:6c6a:0:b0:37c:d49c:3aad with SMTP id ffacd0b85a97d-37d0e8ef3a6mr3709640f8f.11.1728342374459; Mon, 07 Oct 2024 16:06:14 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1728342374; cv=none; d=google.com; s=arc-20240605; b=SwJn7fivvXpm2oNg9FN0jf805ymdrpJXWXtotaZZ7ih/7erg/plTanf1dDAnk39Or9 2EsassE6V1Vl7Yy8dHfjrHVWYU2YX44Dp3cqVK8vxWvI5JtuB57gv0bQtlve2JsSQwfX BBL3W9wwoFXpi12PK43fyywXbew6mgbLxOEjGdT37i21MbnUKp5XcQI5osp2hSj182F/ Z8gmOxgzY+ADQOsrrbNOqE2YNVZLaJTgsJDDMbDqiXC4LxkSiw/13OMixX5eb7tjNjbk ei1iS1qWivvggeK0zJJIwVMDZZ5E4iS0tHJmmi+LmvDc+iOZ/AKYjN9f4BUer81LhXzI JLPg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20240605; h=sender:errors-to:content-transfer-encoding:cc:reply-to :list-subscribe:list-help:list-post:list-archive:list-unsubscribe :list-id:precedence:subject:mime-version:references:in-reply-to :message-id:date:to:from:dkim-signature:delivered-to; bh=B2UDm2SaTNmwHxrFzbpRUbLgq8e1YBeW1OZshekDhEE=; fh=PlWMzmI9LD2qGS7ipLrQl8z0iaQTLQLHzoGuXcBzpCg=; b=ZCt0gMQH8liTAgk1W2tuKPRuzMMOmRpwGWKYrXOpfQu4wh8EXVPKfDY4BNFCl1g17E r/U6iRvAfbT9mgCopItnv4F7uOXZMGa7YoZqwGqjMAcTnfrLwpoZL8NGctfE8GBqooXd /grR0WiL/LOBYOEFW0kn2gc9wPjtCu4Or7yWovuTNRA+nvi657oxWbn5GwfrzwM13lfm UGQIr05u84OexVP0p7TyMx+IVGOaSQVO/3/DfKIqkBQqjk5nZy6TWot0Mah7AF1aZg9a DNe2B+w4bV8oZ1ao+cxN3dPdnMpExer5f2QgL3Kl3V3hr9PNHJ5QyPMlz09TlNChzvrR 66vA==; dara=google.com ARC-Authentication-Results: i=1; mx.google.com; dkim=neutral (body hash did not verify) header.i=@proxyid.net header.s=google header.b=D80YdoiK; spf=pass (google.com: domain of ffmpeg-devel-bounces@ffmpeg.org designates 79.124.17.100 as permitted sender) smtp.mailfrom=ffmpeg-devel-bounces@ffmpeg.org; dara=fail header.i=@gmail.com Return-Path: <ffmpeg-devel-bounces@ffmpeg.org> Received: from ffbox0-bg.mplayerhq.hu (ffbox0-bg.ffmpeg.org. [79.124.17.100]) by mx.google.com with ESMTP id a640c23a62f3a-a994c1f101dsi344107266b.199.2024.10.07.16.06.14; Mon, 07 Oct 2024 16:06:14 -0700 (PDT) Received-SPF: pass (google.com: domain of ffmpeg-devel-bounces@ffmpeg.org designates 79.124.17.100 as permitted sender) client-ip=79.124.17.100; Authentication-Results: mx.google.com; dkim=neutral (body hash did not verify) header.i=@proxyid.net header.s=google header.b=D80YdoiK; spf=pass (google.com: domain of ffmpeg-devel-bounces@ffmpeg.org designates 79.124.17.100 as permitted sender) smtp.mailfrom=ffmpeg-devel-bounces@ffmpeg.org; dara=fail header.i=@gmail.com Received: from [127.0.1.1] (localhost [127.0.0.1]) by ffbox0-bg.mplayerhq.hu (Postfix) with ESMTP id 4675868DDC4; Tue, 8 Oct 2024 02:05:27 +0300 (EEST) X-Original-To: ffmpeg-devel@ffmpeg.org Delivered-To: ffmpeg-devel@ffmpeg.org Received: from mail-qv1-f98.google.com (mail-qv1-f98.google.com [209.85.219.98]) by ffbox0-bg.mplayerhq.hu (Postfix) with ESMTPS id 7053368DD2F for <ffmpeg-devel@ffmpeg.org>; Tue, 8 Oct 2024 02:05:15 +0300 (EEST) Received: by mail-qv1-f98.google.com with SMTP id 6a1803df08f44-6cb2e5d0104so36185456d6.3 for <ffmpeg-devel@ffmpeg.org>; Mon, 07 Oct 2024 16:05:15 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=proxyid.net; s=google; t=1728342314; x=1728947114; darn=ffmpeg.org; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:cc:to:from:from:to:cc:subject:date :message-id:reply-to; bh=hZBNkBBpP+81ox5d1SI+Y9Sma9ddr7DuEGWkkaDyoU8=; b=D80YdoiK4y+v9UamkzX9rB99xz9Yf0mQyZizMOlnBapuPyM70v2jbZHV9c5PhopCdZ yd9Iy0vUtTVnM4Hh1YEB6eG4wJMiodl9bOI7RWMjY5PALrd7Go5zBk8feYwB51fwKoja /ZoLmGNtF573kyDDWlEbwWfqpyQDZBDArQXd/31LtAt3Zb4d5tmnZOvA8WUtuHRPrOo5 kAQCRXIOW8qI2ueV6cKFEfe9/Vd8rm2hIh1qDpijwV8kLaQfuk5WVN96VUM50sbKkpB5 DIAzyIDCz9JkCtpTnTRSFAamWmUhSy+lVyE+bn7iZjUpqF2mSKi8mNAO+NLvQEB+1CI6 8AdQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1728342314; x=1728947114; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:cc:to:from:x-gm-message-state:from:to:cc :subject:date:message-id:reply-to; bh=hZBNkBBpP+81ox5d1SI+Y9Sma9ddr7DuEGWkkaDyoU8=; b=TSejTbUOaut0PqT7kWnN3hDiRHalsFHJY/Hx0vw2noRb/wjIfHkNwYWKT/x7qeBhnU jsXq9JjxUiU+j4b2J9vYa4RJy1+5tOnk12X+ljKpxYgfcKRMNXsjWNrQZBuSe67BBx65 48IQ55/Z0cePsuVGQ1WCQhXcxBEhy0tcX2j0navCREQus7AyrpgxY+2vanHG6lKN4gnh ZtMHGzhBfGXATKFOQe9xRCdEs36xvWHmIX3oCrV0rRCf4qeWWpRs/DE/lhYt9hShkOED wvnUYEfdHNTAZZKShG1KJ9lLqdU/HIA7G/B5i+xSVRqvcXszvPkYZT5tF3FnZsKtMg7D Q2qw== X-Gm-Message-State: AOJu0Yz438VHU3taey8N76n8uwbj4PjOky0/PuuWHmYrglbElStoFRY4 ed7WLvp6cFg7s7rqvyDNmomJuEfX8tORj6tbamzKk/S/j9yzB42zKc8p4zhw57CYItfrXfM5HE4 LFc04Ke48VWdGEj3LNApQypuRlCR3h/udQHjU/JjD X-Received: by 2002:a05:6214:440c:b0:6cb:27e6:393f with SMTP id 6a1803df08f44-6cb9a4ea384mr178119396d6.36.1728342314251; Mon, 07 Oct 2024 16:05:14 -0700 (PDT) Received: from localhost.localdomain (c-69-245-177-215.hsd1.il.comcast.net. [69.245.177.215]) by smtp-relay.gmail.com with ESMTPS id 6a1803df08f44-6cba475c5e9sm2106236d6.65.2024.10.07.16.05.13 (version=TLS1_3 cipher=TLS_CHACHA20_POLY1305_SHA256 bits=256/256); Mon, 07 Oct 2024 16:05:14 -0700 (PDT) X-Relaying-Domain: proxyid.net From: Marth64 <marth64@proxyid.net> To: ffmpeg-devel@ffmpeg.org Date: Mon, 7 Oct 2024 18:04:53 -0500 Message-Id: <20241007230505.27623-6-marth64@proxyid.net> X-Mailer: git-send-email 2.39.5 (Apple Git-154) In-Reply-To: <20241007230505.27623-1-marth64@proxyid.net> References: <20241007230505.27623-1-marth64@proxyid.net> MIME-Version: 1.0 Subject: [FFmpeg-devel] [PATCH v3 05/17] avformat/dvdvideodec: move memcpy below missed NAV packet warning X-BeenThere: ffmpeg-devel@ffmpeg.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: FFmpeg development discussions and patches <ffmpeg-devel.ffmpeg.org> List-Unsubscribe: <https://ffmpeg.org/mailman/options/ffmpeg-devel>, <mailto:ffmpeg-devel-request@ffmpeg.org?subject=unsubscribe> List-Archive: <https://ffmpeg.org/pipermail/ffmpeg-devel> List-Post: <mailto:ffmpeg-devel@ffmpeg.org> List-Help: <mailto:ffmpeg-devel-request@ffmpeg.org?subject=help> List-Subscribe: <https://ffmpeg.org/mailman/listinfo/ffmpeg-devel>, <mailto:ffmpeg-devel-request@ffmpeg.org?subject=subscribe> Reply-To: FFmpeg development discussions and patches <ffmpeg-devel@ffmpeg.org> Cc: Marth64 <marth64@proxyid.net> Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Errors-To: ffmpeg-devel-bounces@ffmpeg.org Sender: "ffmpeg-devel" <ffmpeg-devel-bounces@ffmpeg.org> X-TUID: zzs6OzGK0TDh |
Series |
avformat/dvdvideodec: bugfixes and menu chapter markers
|
expand
|
Context | Check | Description |
---|---|---|
yinshiyou/make_loongarch64 | fail | Make failed |
diff --git a/libavformat/dvdvideodec.c b/libavformat/dvdvideodec.c index bed7c38ff6..9246ac0863 100644 --- a/libavformat/dvdvideodec.c +++ b/libavformat/dvdvideodec.c @@ -804,13 +804,13 @@ static int dvdvideo_play_next_ps_block(AVFormatContext *s, DVDVideoPlaybackState return AVERROR_INPUT_CHANGED; } - memcpy(buf, &nav_buf, nav_len); - if (state->pgn != cur_pgn) av_log(s, AV_LOG_WARNING, "Unexpected PG change (expected=%d actual=%d); " "this could be due to a missed NAV packet\n", state->pgn, cur_pgn); + memcpy(buf, &nav_buf, nav_len); + (*p_nav_event) = nav_event; state->is_seeking = 0;
Readability improvement; the warning can be bundled beneath the preceding validations rather than awkwardly between the memcpy and return. Signed-off-by: Marth64 <marth64@proxyid.net> --- libavformat/dvdvideodec.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-)