Skip to content

Commit

Permalink
Free the manually allocated AVFormatContext::pb
Browse files Browse the repository at this point in the history
  • Loading branch information
cantabile committed Apr 4, 2019
1 parent 8de1c6b commit 5dc3756
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion src/FFMPEG.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -194,8 +194,10 @@ void FFMPEG::cleanup() {
deinitVideoCodec();


if (fctx)
if (fctx) {
avio_context_free(&fctx->pb);
avformat_close_input(&fctx);
}


for (auto it = audio_ctx.begin(); it != audio_ctx.end(); it++) {
Expand Down

0 comments on commit 5dc3756

Please sign in to comment.