aboutsummaryrefslogtreecommitdiffstats
path: root/libavformat
diff options
context:
space:
mode:
authorMartin Storsjö <martin@martin.st>2024-06-20 16:31:51 +0300
committerMartin Storsjö <martin@martin.st>2024-07-04 23:33:23 +0300
commit01312fdfcfd6dd3c0ab079c49ba15bdbee71959e (patch)
treed4666d1bfbb36bfc182d2e51256f88e1495df1d8 /libavformat
parentaffc1acde7db0ed533749988b2e0e311979704a4 (diff)
downloadffmpeg-01312fdfcfd6dd3c0ab079c49ba15bdbee71959e.tar.gz
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@martin.st>
Diffstat (limited to 'libavformat')
-rw-r--r--libavformat/hlsenc.c2
1 files changed, 1 insertions, 1 deletions
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;