You've already forked FFmpeg
mirror of
https://github.com/FFmpeg/FFmpeg.git
synced 2025-08-15 14:13:16 +02:00
av_free* cleanup
Originally committed as revision 6019 to svn://svn.ffmpeg.org/ffmpeg/trunk
This commit is contained in:
@@ -102,7 +102,6 @@ void Release(void *ctx)
|
|||||||
|
|
||||||
if (ci) get_watermark_picture(ci, 1);
|
if (ci) get_watermark_picture(ci, 1);
|
||||||
|
|
||||||
if (ctx)
|
|
||||||
av_free(ctx);
|
av_free(ctx);
|
||||||
}
|
}
|
||||||
|
|
||||||
@@ -556,14 +555,8 @@ int get_watermark_picture(ContextInfo *ci, int cleanup)
|
|||||||
if (0 != cleanup)
|
if (0 != cleanup)
|
||||||
{
|
{
|
||||||
// Free the RGB image
|
// Free the RGB image
|
||||||
if (0 != ci->buffer) {
|
av_freep(&ci->buffer);
|
||||||
av_free(ci->buffer);
|
av_freep(&ci->pFrameRGB);
|
||||||
ci->buffer = 0;
|
|
||||||
}
|
|
||||||
if (0 != ci->pFrameRGB) {
|
|
||||||
av_free(ci->pFrameRGB);
|
|
||||||
ci->pFrameRGB = 0;
|
|
||||||
}
|
|
||||||
|
|
||||||
// Close the codec
|
// Close the codec
|
||||||
if (0 != ci->pCodecCtx) {
|
if (0 != ci->pCodecCtx) {
|
||||||
|
Reference in New Issue
Block a user