[FFmpeg-trac] #4899(avcodec:open): memory leak when reencoding to native encoder (was: memory leak when reencoding udp input)

FFmpeg trac at avcodec.org
Sat Jan 2 09:08:18 CET 2016

#4899: memory leak when reencoding to native encoder
             Reporter:  svvitch      |                    Owner:
                 Type:  defect       |                   Status:  open
             Priority:  important    |                Component:  avcodec
              Version:  git-master   |               Resolution:
             Keywords:  leak         |               Blocked By:
  regression                         |  Reproduced by developer:  1
             Blocking:               |
Analyzed by developer:  0            |

Comment (by rogerdpack):

 also seems reproducible with the following, from #5118:

 ./ffmpeg_g  -f lavfi -i color=c=red:size=10x10 -f mpegts - | ./ffmpeg_g -i
 - -vcodec mpeg4 -f null out

 Also seems to not be tied to mpeg2video input video codec, as the
 following also repro's it:
 ./ffmpeg_g  -f lavfi -i color=c=red:size=10x10 -vcodec mpeg4 -f mpegts - |
 ./ffmpeg_g -i - -vcodec mpeg4 -f null out

 (however, if the input is libx264 then it doesn't leak, odd)

 The output codec also doesn't seem to matter (seems that any native
 encoder shows the problem, mpeg2video, mpeg4, jpeg):
  ./ffmpeg_g  -f lavfi -i color=c=red:size=10x10 -f mpegts - | ./ffmpeg_g
 -i -  -f image2 -y -updatefirst 1  out.jpg

 however, if I output to libx264, then the problem also doesn't seem to

Ticket URL: <https://trac.ffmpeg.org/ticket/4899#comment:12>
FFmpeg <https://ffmpeg.org>
FFmpeg issue tracker

More information about the FFmpeg-trac mailing list