[FFmpeg-cvslog] hlsenc: Fix the return value accumulation in append_single_file
Martin Storsjö
git at videolan.org
Thu Jul 4 23:35:29 EEST 2024
ffmpeg | branch: master | Martin Storsjö <martin at martin.st> | Thu Jun 20 16:31:51 2024 +0300| [01312fdfcfd6dd3c0ab079c49ba15bdbee71959e] | committer: Martin Storsjö
hlsenc: Fix the return value accumulation in append_single_file
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.
Signed-off-by: Martin Storsjö <martin at martin.st>
> http://git.videolan.org/gitweb.cgi/ffmpeg.git/?a=commit;h=01312fdfcfd6dd3c0ab079c49ba15bdbee71959e
---
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;
More information about the ffmpeg-cvslog
mailing list