Skip to content

Commit

Permalink
fix memory leak by removing useless clone
Browse files Browse the repository at this point in the history
  • Loading branch information
mmason-evertz committed Mar 23, 2023
1 parent 6e0d010 commit 8560306
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion ac-ffmpeg/src/codec/video/filter.c
Original file line number Diff line number Diff line change
Expand Up @@ -130,7 +130,7 @@ int ffw_filtergraph_take_frame(AVFilterContext *context, AVFrame **out) {
return ret;
}

*out = av_frame_clone(frame);
*out = frame;

return 1;
}
Expand Down

0 comments on commit 8560306

Please sign in to comment.