Skip to content

Commit

Permalink
Free SwsContext in VideoConverter
Browse files Browse the repository at this point in the history
  • Loading branch information
mickel8 committed Aug 12, 2024
1 parent 56f1f5c commit f151df4
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions c_src/xav/video_converter.c
Original file line number Diff line number Diff line change
Expand Up @@ -21,8 +21,11 @@ int video_converter_convert(AVFrame *src_frame, uint8_t *out_data[], int out_lin

if (ret < 0) {
av_freep(&out_data[0]);
sws_freeContext(sws_ctx);
return ret;
}

sws_freeContext(sws_ctx);

return ret;
}

0 comments on commit f151df4

Please sign in to comment.