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

git.blender.org/blender.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorSergey Sharybin <sergey.vfx@gmail.com>2013-03-11 15:09:57 +0400
committerSergey Sharybin <sergey.vfx@gmail.com>2013-03-11 15:09:57 +0400
commit28857e8c9efff961f1f526dd247d0c35a0a2b8be (patch)
treeff5198a8898fd2cb61bb07692cd8fbc2fd3aa303 /source/blender/blenkernel/intern/writeffmpeg.c
parent1a0789dc72553ef6ab133c1d60212448e4f329d9 (diff)
Fix #34511: Invalid Audio/Video codec combination produces hung filehandle
Diffstat (limited to 'source/blender/blenkernel/intern/writeffmpeg.c')
-rw-r--r--source/blender/blenkernel/intern/writeffmpeg.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/source/blender/blenkernel/intern/writeffmpeg.c b/source/blender/blenkernel/intern/writeffmpeg.c
index 7e51025883d..c9e07952f4a 100644
--- a/source/blender/blenkernel/intern/writeffmpeg.c
+++ b/source/blender/blenkernel/intern/writeffmpeg.c
@@ -837,7 +837,8 @@ static int start_ffmpeg_impl(struct RenderData *rd, int rectx, int recty, Report
}
if (avformat_write_header(of, NULL) < 0) {
BKE_report(reports, RPT_ERROR, "Could not initialize streams, probably unsupported codec combination");
- av_dict_free(&opts);
+ av_dict_free(&opts);
+ avio_close(of->pb);
return 0;
}