Skip to content

Commit

Permalink
Fix mem-leak from avcodec_alloc_context3()
Browse files Browse the repository at this point in the history
  • Loading branch information
bear101 committed Nov 2, 2024
1 parent 68ded7c commit 239a87f
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions Library/TeamTalkLib/avstream/FFmpegStreamer.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -583,8 +583,8 @@ void FFmpegStreamer::Run()
avcodec_close(aud_dec_ctx);
if(video_filter_graph)
avfilter_graph_free(&video_filter_graph);
if(vid_dec_ctx)
avcodec_close(vid_dec_ctx);
if (vid_dec_ctx)
avcodec_free_context(&vid_dec_ctx);
// if(options)
// av_dict_free(&options); //causes crash...
if(fmt_ctx)
Expand Down

0 comments on commit 239a87f

Please sign in to comment.