Opened 10 years ago

Closed 10 years ago

Last modified 10 years ago

#3642 closed defect (fixed)

video filter "vignette" has memory leak

Reported by: coffey Owned by:
Priority: normal Component: avfilter
Version: git-master Keywords: vignette leak
Cc: Blocked By:
Blocking: Reproduced by developer: no
Analyzed by developer: no

Description

I tried next command
ffplay -i foobar.mp4 -vf vignette
increase working memory and stoped by out of memory

libavfilter/vf_vignette.c line 271
in filter_frame() function.
insert af_frame_free(&in) before "return" to prevent memory leak.

old:

return ff_filter_frame(outlink, out);

new:

av_frame_free(&in);
return ff_filter_frame(outlink, out);

Attachments (1)

0001-add-free-input-buffer.patch (644 bytes ) - added by coffey 10 years ago.
patch

Download all attachments as: .zip

Change History (5)

comment:1 by Clément Bœsch, 10 years ago

Erm, yeah you're right. Can you send a git format-patch or at least give your full name for correct authorship?

by coffey, 10 years ago

patch

comment:2 by coffey, 10 years ago

upload patch 0001-add-free-input-buffer.patch
please confirm.

comment:3 by Clément Bœsch, 10 years ago

Resolution: fixed
Status: newclosed

Thank you, applied with a different commit message in 491d602283cdde8cf8623fbacf55066551c57ae3.

comment:4 by Carl Eugen Hoyos, 10 years ago

Keywords: leak added
Note: See TracTickets for help on using tickets.