aboutsummaryrefslogtreecommitdiffstats
path: root/libavformat/hlsenc.c
diff options
context:
space:
mode:
authorAndreas Rheinhardt <andreas.rheinhardt@outlook.com>2024-03-05 11:15:36 +0100
committerAndreas Rheinhardt <andreas.rheinhardt@outlook.com>2024-03-05 15:15:31 +0100
commit440f8186ef9baf3f581fc463f318014d3176c4cd (patch)
tree257b98e4b1af2888abf67268ff4f465099a4e8a2 /libavformat/hlsenc.c
parentd085f341d66ebfe5b29d67773e89c253f4eb99a8 (diff)
downloadffmpeg-440f8186ef9baf3f581fc463f318014d3176c4cd.tar.gz
avformat/dashenc, hlsenc: Return 0 on succes from write_header
Do not propagate the return value of avformat_write_header(), as it contains the information whether the output had already been initialized in avformat_init_output(), but this is set generically; the return value of FFOutputFormat.write_header is not documented at all (and is currently ignored if >= 0), but it is more future-proof to simply return 0 on success. Reviewed-by: Liu Steven <lq@chinaffmpeg.org> Signed-off-by: Andreas Rheinhardt <andreas.rheinhardt@outlook.com>
Diffstat (limited to 'libavformat/hlsenc.c')
-rw-r--r--libavformat/hlsenc.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/libavformat/hlsenc.c b/libavformat/hlsenc.c
index d5cd627e59..e560aa6a20 100644
--- a/libavformat/hlsenc.c
+++ b/libavformat/hlsenc.c
@@ -2372,7 +2372,7 @@ static int hls_write_header(AVFormatContext *s)
}
}
- return ret;
+ return 0;
}
static int hls_init_file_resend(AVFormatContext *s, VariantStream *vs)