Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/FFmpeg/FFmpeg.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAndreas Rheinhardt <andreas.rheinhardt@gmail.com>2020-02-29 23:00:17 +0300
committerAndreas Rheinhardt <andreas.rheinhardt@gmail.com>2020-03-26 03:49:34 +0300
commit2a789688498b0715e4804ae2b7e36bee0cd65a63 (patch)
tree418d9e436471b8f552ce9e269f84feebbe8d093f /libavformat/webm_chunk.c
parent0b1af9d3306583af0ac8016f99017460c1d56aad (diff)
avformat/webm_chunk: Close IO if writing header fails
Signed-off-by: Andreas Rheinhardt <andreas.rheinhardt@gmail.com>
Diffstat (limited to 'libavformat/webm_chunk.c')
-rw-r--r--libavformat/webm_chunk.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/libavformat/webm_chunk.c b/libavformat/webm_chunk.c
index d75fd5e6a3..6daa6a0102 100644
--- a/libavformat/webm_chunk.c
+++ b/libavformat/webm_chunk.c
@@ -150,9 +150,9 @@ static int webm_chunk_write_header(AVFormatContext *s)
oc->pb->seekable = 0;
ret = oc->oformat->write_header(oc);
+ ff_format_io_close(s, &oc->pb);
if (ret < 0)
return ret;
- ff_format_io_close(s, &oc->pb);
for (i = 0; i < s->nb_streams; i++) {
// ms precision is the de-facto standard timescale for mkv files.
avpriv_set_pts_info(s->streams[i], 64, 1, 1000);