[FFmpeg-trac] #7146(undetermined:new): heavy memory leak when reading video from a DV/firewire camera (via iec61883)
FFmpeg
trac at avcodec.org
Wed Apr 18 09:34:03 EEST 2018
#7146: heavy memory leak when reading video from a DV/firewire camera (via
iec61883)
-------------------------------------+-------------------------------------
Reporter: bugtrack | Type: defect
Status: new | Priority: normal
Component: | Version:
undetermined | unspecified
Keywords: | Blocked By:
Blocking: | Reproduced by developer: 0
Analyzed by developer: 0 |
-------------------------------------+-------------------------------------
Summary of the bug:
When reading from a DV/firewire camera (via iec61883),
ffmpeg leaks memory equivalent to the total amount of data acquired from
the input.
This causes ffmpeg's memory usage to diverge at a rate of approx. 28
Mbit/s.
How to reproduce:
{{{
% ffmpeg -y -f iec61883 -i 0 -f null /dev/null
}}}
The memory allocated by ffmpeg steadily increases at the rate of the DV
data coming in.
For other inputs, like a USB webcam,
{{{
% ffmpeg -y -f video4linux2 -i /dev/video0 -f null /dev/null
}}}
memory usage does not diverge.
Valgrind shows, that the memory actually leaks:
{{{
valgrind --leak-check=full ffmpeg -y -v 9 -loglevel 99 -f iec61883 -i 0 -t
30 -f null /dev/null > verbose_valgrind_output 2>&1
}}}
--
Ticket URL: <https://trac.ffmpeg.org/ticket/7146>
FFmpeg <https://ffmpeg.org>
FFmpeg issue tracker
More information about the FFmpeg-trac
mailing list