projects
/
dcpomatic.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(from parent 1:
ef28144
)
Speculative fix to ensure correct freeing.
author
Carl Hetherington
<cth@carlh.net>
Thu, 24 Aug 2023 13:43:54 +0000
(15:43 +0200)
committer
Carl Hetherington
<cth@carlh.net>
Sat, 26 Aug 2023 08:23:21 +0000
(10:23 +0200)
src/lib/ffmpeg_file_encoder.cc
patch
|
blob
|
history
diff --git
a/src/lib/ffmpeg_file_encoder.cc
b/src/lib/ffmpeg_file_encoder.cc
index 5a25b8cd90070feec5c3303c779644155bd14083..30dcdb94cc299b0031583eee5218a6de9c23a84a 100644
(file)
--- a/
src/lib/ffmpeg_file_encoder.cc
+++ b/
src/lib/ffmpeg_file_encoder.cc
@@
-281,6
+281,7
@@
FFmpegFileEncoder::~FFmpegFileEncoder ()
_audio_streams.clear ();
avcodec_close (_video_codec_context);
avio_close (_format_context->pb);
+ _format_context->pb = nullptr;
avformat_free_context (_format_context);
}