[FFmpeg-trac] #8794(avcodec:new): memory leak in qsv decoding

FFmpeg trac at avcodec.org
Fri Jul 17 11:05:23 EEST 2020


#8794: memory leak in qsv decoding
-------------------------------------+-------------------------------------
             Reporter:  fvb          |                     Type:  defect
               Status:  new          |                 Priority:  important
            Component:  avcodec      |                  Version:  git-
             Keywords:  qsv memory   |  master
  leak                               |               Blocked By:
             Blocking:               |  Reproduced by developer:  0
Analyzed by developer:  0            |
-------------------------------------+-------------------------------------
 Summary of the bug: Memory leak when decoding content through qsv
 decoders, rendered to system memory.

 How to reproduce:

 Run the below command for a 15-30 minutes and look at your system memory.
 This is specifically using the capability of rendering to system memory of
 qsv.

 {{{
 % ffmpeg -re -stream_loop -1 -c:v h264_qsv -i jellyfish-250-mbps-4k-
 uhd-h264.mkv -f null -
 }}}




 ffmpeg build settings:
 {{{
 ffmpeg version 4.3.git Copyright (c) 2000-2020 the FFmpeg developers
 built with gcc 4.8.5 (GCC) 20150623 (Red Hat 4.8.5-39)
 configuration: --prefix=/usr --bindir=/usr/bin --datadir=/usr/share/ffmpeg
 --docdir=/usr/share/doc/ffmpeg --incdir=/usr/include/ffmpeg
 --libdir=/usr/lib64 --mandir=/usr/share/man --arch=x86_64 --optflags='-O2
 -g -pipe -Wall -Wp,-D_FORTIFY_SOURCE=2 -fexceptions -fstack-protector-
 strong --param=ssp-buffer-size=4 -grecord-gcc-switches -m64
 -mtune=generic' --extra-ldflags='-Wl,-z,relro ' --enable-bzlib --enable-
 libdrm --disable-crystalhd --enable-fontconfig --enable-gcrypt --enable-
 gnutls --enable-ladspa --enable-libass --enable-libcdio --enable-libfdk-
 aac --enable-nonfree --enable-indev=jack --enable-libfreetype --enable-
 libfribidi --enable-libgsm --enable-libmp3lame --enable-opengl --enable-
 libopenjpeg --enable-libpulse --enable-libsoxr --enable-libspeex --enable-
 libssh --enable-libtheora --enable-libvorbis --enable-libv4l2 --enable-
 libx264 --enable-libx265 --enable-avfilter --enable-avresample --enable-
 postproc --enable-pthreads --disable-static --enable-shared --enable-gpl
 --disable-debug --disable-stripping --enable-libsrt --enable-libmfx
 --enable-libxcb --disable-libzmq --shlibdir=/usr/lib64 --enable-runtime-
 cpudetect
 libavutil      56. 55.100 / 56. 55.100
 libavcodec     58. 95.100 / 58. 95.100
 libavformat    58. 48.100 / 58. 48.100
 libavdevice    58. 11.101 / 58. 11.101
 libavfilter     7. 87.100 /  7. 87.100
 libavresample   4.  0.  0 /  4.  0.  0
 libswscale      5.  8.100 /  5.  8.100
 libswresample   3.  8.100 /  3.  8.100
 libpostproc    55.  8.100 / 55.  8.100
 }}}

 built 2-3 days ago, ~ Tuesday 14th of July 2020


 Patches should be submitted to the ffmpeg-devel mailing list and not this
 bug tracker.

--
Ticket URL: <https://trac.ffmpeg.org/ticket/8794>
FFmpeg <https://ffmpeg.org>
FFmpeg issue tracker


More information about the FFmpeg-trac mailing list