Opened 5 years ago

Closed 5 years ago

Last modified 5 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 5 years ago.
patch

Download all attachments as: .zip

Change History (5)

comment:1 Changed 5 years ago by ubitux

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

Changed 5 years ago by coffey

patch

comment:2 Changed 5 years ago by coffey

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

comment:3 Changed 5 years ago by ubitux

  • Resolution set to fixed
  • Status changed from new to closed

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

comment:4 Changed 5 years ago by cehoyos

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