Commit e1a70170 authored by Jan Gerber's avatar Jan Gerber
Browse files

free picture, leave out frame_p

parent 8d162954
......@@ -124,6 +124,7 @@ static AVFrame *frame_alloc (int pix_fmt, int width, int height) {
*/
static void frame_dealloc (AVFrame *frame) {
if (frame) {
avpicture_free((AVPicture*)frame);
av_free(frame);
}
}
......@@ -969,7 +970,6 @@ void ff2theora_output(ff2theora this) {
if(ppContext)
pp_free_context(ppContext);
if (!info.audio_only) {
frame_dealloc(frame_p);
frame_dealloc(output_p);
frame_dealloc(output_tmp_p);
frame_dealloc(output_resized_p);
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment