[FFmpeg-trac] #4484(avcodec:new): libavcodec: memory leak at libavcodec/utils.c:unrefcount_frame

FFmpeg trac at avcodec.org
Tue Apr 14 18:59:44 CEST 2015


#4484: libavcodec: memory leak at libavcodec/utils.c:unrefcount_frame
-------------------------------------+-----------------------------------
             Reporter:  faham        |                    Owner:
                 Type:  defect       |                   Status:  new
             Priority:  normal       |                Component:  avcodec
              Version:  unspecified  |               Resolution:
             Keywords:  leak         |               Blocked By:
             Blocking:               |  Reproduced by developer:  0
Analyzed by developer:  0            |
-------------------------------------+-----------------------------------

Comment (by faham):

 Just switched to tip of the master
 (a61c75e9f77a063cdcf2e68ee752c08a3ff8173d) and the leak is still
 happening, I'm actually using ffmpeg through gstreamer, gst-libav used
 libav as a submodule, I've replaced that submodule with ffmpeg (as far as
 both provide same interfacing functions) and am using the following
 gstreamer pipeline to playback:

 {{{
 gst-launch-1.0 \
     udpsrc address=239.6.60.1 port=6100 name=udpsrc1 ! \
     queue max-size-bytes=0 max-size-buffers=0 max-size-time=10000000000
 name=q_tsdemux_1 ! \
     tsdemux name=dmx \
     dmx. ! mpegvideoparse ! \
         queue max-size-bytes=0 max-size-buffers=0 max-size-
 time=10000000000 name=q_videoparse_1 ! \
         vaapidecode name=vaapidecode_1 !  \
         queue max-size-bytes=0 max-size-buffers=0 max-size-
 time=10000000000 name=q_videosink_1 ! \
         vaapisink display=x11 \
     dmx. ! identity ! ac3parse ! avdec_ac3 ! audioconvert ! \
         audioresample sinc-filter-mode=full quality=3 ! \
         audio/x-raw, format=S16LE, rate=44000 ! \
         queue max-size-bytes=0 max-size-buffers=0 max-size-
 time=10000000000 name=q_audiosink ! \
         autoaudiosink
 }}}

 in this pipeline the avdec_ac3 element utilizes libavcodec of ffmpeg which
 leads to the memory leak

--
Ticket URL: <https://trac.ffmpeg.org/ticket/4484#comment:3>
FFmpeg <https://ffmpeg.org>
FFmpeg issue tracker


More information about the FFmpeg-trac mailing list