Fix memleak in VSE proxy creation.
We didn't properly free allocated ffmpeg data structures.
This commit is contained in:
parent
e6a9b22384
commit
5a0b4e97e6
|
@ -1123,6 +1123,9 @@ static int indexer_performance_get_decode_rate(FFmpegIndexBuilderContext *contex
|
|||
}
|
||||
}
|
||||
|
||||
av_packet_free(&packet);
|
||||
av_frame_free(&in_frame);
|
||||
|
||||
avcodec_flush_buffers(context->iCodecCtx);
|
||||
av_seek_frame(context->iFormatCtx, -1, 0, AVSEEK_FLAG_BACKWARD);
|
||||
return frames_decoded;
|
||||
|
@ -1157,6 +1160,8 @@ static int indexer_performance_get_max_gop_size(FFmpegIndexBuilderContext *conte
|
|||
}
|
||||
}
|
||||
|
||||
av_packet_free(&packet);
|
||||
|
||||
av_seek_frame(context->iFormatCtx, -1, 0, AVSEEK_FLAG_BACKWARD);
|
||||
return max_gop;
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue