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 231994A942 for ; Mon, 24 Jun 2024 08:49:55 +0000 (UTC) Received: from [127.0.1.1] (localhost [127.0.0.1]) by ffbox0-bg.mplayerhq.hu (Postfix) with ESMTP id 0034868D627; Mon, 24 Jun 2024 11:49:52 +0300 (EEST) Received: from mail-lf1-f53.google.com (mail-lf1-f53.google.com [209.85.167.53]) by ffbox0-bg.mplayerhq.hu (Postfix) with ESMTPS id C765F68C0EB for ; Mon, 24 Jun 2024 11:49:45 +0300 (EEST) Received: by mail-lf1-f53.google.com with SMTP id 2adb3069b0e04-52cdd893e5cso1875624e87.1 for ; Mon, 24 Jun 2024 01:49:45 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=martin-st.20230601.gappssmtp.com; s=20230601; t=1719218985; x=1719823785; darn=ffmpeg.org; h=content-transfer-encoding:mime-version:message-id:date:subject:cc :to:from:from:to:cc:subject:date:message-id:reply-to; bh=w/JmEiku+UenKdtOzTbEM9LeDwd2twhQbA4B89VTa/Q=; b=Ah85eOZ5raW1x4ebHdE7BH/YV5pk6Gg+EnioZqXai2uOdFRcilOOyO0shfQUWXNAo2 Lg/JOlA0tDC9AIa4OVmu2aclREWLKDVH5p/lKfaNkDED6I6Of3hj1nF9lbLCKRwgTxPI Q2sdjpA0Z5sT2RFM4kJcvPWofb9Hmb4tTDxf2lOHIKm1oKCX/3Bt4a2o7y3t4Pe6HKzo CSV9w/gTvcl7dhSMXFp2+XcRdyaAmmbRn4rOoQTdjdp3sXq90w1oZ41CusMTdrCQVvyC vbupkPQmAy69MXc17Z+ukWMqUhrwcrfGE09TLkUAU9FDyt99REmoS3xDKg+eJeNdahvf nFng== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1719218985; x=1719823785; h=content-transfer-encoding:mime-version:message-id:date:subject:cc :to:from:x-gm-message-state:from:to:cc:subject:date:message-id :reply-to; bh=w/JmEiku+UenKdtOzTbEM9LeDwd2twhQbA4B89VTa/Q=; b=KGBo1+mdvj5qs1abv28ybkAVfIwJk0+0Ly8MNbfaKIGRfJc8U1HQaR2eqAnBqoqPQy A6k7sv8prJ5StHjS8yWfnR24xmtRQc/VGD/8MgEutlF4Ac9/HXjy/vVAZM4vl/Q+Cl0i ICTuO2Wefw6pwDkEwHKp81/Cu3ynMp47Q41LAVSLh9jOTek241hCuxbgXOiMmP5Li6d1 FWWO4vhR0MzNg14hRpu3WrqjyumrBtvFU8Xj2yC2XDJEPxGK3wdIZlbBaa19uRU+nHSV Oc3JadOtYDvOeKKHBx30cLcrRDy/S1jHSr0c0YVROvpEH+9VM/RC01Jc7sT5hpnzm3bL YCMA== X-Gm-Message-State: AOJu0Yw43X6QVBUwB7wyzATs4T5+c794eqRAm4WOQ2EeNo2i6NXOGUCd 5TWCYPKQ89UP5vIe3Ef/HzfmL9Q5oMTBqWpPu9Ah5XNbqfqgU3na1+bklaeC001iKXAt89Vlr0N xzg== X-Google-Smtp-Source: AGHT+IE/nxmPp8rrD2L26FRJI/cgxUjBR1Ohn+WOAmt/dyaIH4BVkQvnvMADs+uo5qnnyr/cXIc1/A== X-Received: by 2002:ac2:4c86:0:b0:52c:d27b:ddcb with SMTP id 2adb3069b0e04-52ce183270emr2756957e87.3.1719218984852; Mon, 24 Jun 2024 01:49:44 -0700 (PDT) Received: from localhost (dsl-tkubng21-58c01c-243.dhcp.inet.fi. [88.192.28.243]) by smtp.gmail.com with ESMTPSA id 2adb3069b0e04-52cd63cd109sm937773e87.116.2024.06.24.01.49.44 (version=TLS1 cipher=AES128-SHA bits=128/128); Mon, 24 Jun 2024 01:49:44 -0700 (PDT) From: =?UTF-8?q?Martin=20Storsj=C3=B6?= To: ffmpeg-devel@ffmpeg.org Date: Mon, 24 Jun 2024 11:49:41 +0300 Message-Id: <20240624084944.14276-1-martin@martin.st> X-Mailer: git-send-email 2.39.3 (Apple Git-146) MIME-Version: 1.0 Subject: [FFmpeg-devel] [PATCH 1/4] hlsenc: Fix the return value accumulation in append_single_file 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: lq@chinaffmpeg.org 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: Both the read_byte variable (which is accumulated into append_single_file) and the return value are int64_t; give the ret variable the right corresponding type too. --- libavformat/hlsenc.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/libavformat/hlsenc.c b/libavformat/hlsenc.c index f5c0243cf1..3d5eb47e84 100644 --- a/libavformat/hlsenc.c +++ b/libavformat/hlsenc.c @@ -2380,7 +2380,7 @@ static int hls_init_file_resend(AVFormatContext *s, VariantStream *vs) static int64_t append_single_file(AVFormatContext *s, VariantStream *vs) { - int ret = 0; + int64_t ret = 0; int64_t read_byte = 0; int64_t total_size = 0; char *filename = NULL; -- 2.39.3 (Apple Git-146) _______________________________________________ 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".