[FFmpeg-trac] #3116(undetermined:new): resource leaks, handle leaks(WIN7, avcodec_decode_video2, threads)

FFmpeg trac at avcodec.org
Sun Nov 3 20:35:41 CET 2013


#3116: resource leaks,handle leaks(WIN7,avcodec_decode_video2,threads)
-------------------------------------+-------------------------------------
             Reporter:  q1q2q3q4ln   |                     Type:  defect
               Status:  new          |                 Priority:  important
            Component:               |                  Version:  git-
  undetermined                       |  master
             Keywords:  handle       |               Blocked By:
  leaks                              |  Reproduced by developer:  0
             Blocking:               |
Analyzed by developer:  0            |
-------------------------------------+-------------------------------------
 Summary of the bug:resource leaks,handle leaks
 How to reproduce:
         1 OS is Window 7(64BIT)
         2 Using the API avcodec_decode_video2 to decode H264 data.
         3 Test in the through the [Windows Task Manager] to find Handle
 each data play an increasing number 2 (resource leaks,handle leaks)
           (windbg:CreateEvent)
         4 100% reproduction
         5 Using the FFMPEG version is ffmpeg-20131102-git-
 1fb3b49-Win32-dev and ffmpeg-20131102-git-1fb3b49-Win32-shared
         6 If this modify the code, the problem can solved, but you cannot
 use a multithreaded decoding
                 e.g:(modify->)
                 // disable the thread
                 pCodecCtxVideo->thread_count = 1;
                 // Open codec
                 if(avcodec_open(pCodecCtxVideo, pCodecVideo, NULL)<0) {

         7 May be avcodec_close free function has not been deleted some
 thread's xxx clean

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


More information about the FFmpeg-trac mailing list