[FFmpeg-trac] #9349(avformat:closed): avformat_find_stream_info with avio+mpeg may causes an abnormal increase in memory

FFmpeg trac at avcodec.org
Sat Jul 31 04:19:03 EEST 2021


#9349: avformat_find_stream_info with avio+mpeg may causes an abnormal increase in
memory
------------------------------------+--------------------------------------
             Reporter:  潘雨诗      |                    Owner:  (none)
                 Type:  defect      |                   Status:  closed
             Priority:  normal      |                Component:  avformat
              Version:  git-master  |               Resolution:  worksforme
             Keywords:              |               Blocked By:
             Blocking:              |  Reproduced by developer:  0
Analyzed by developer:  0           |
------------------------------------+--------------------------------------
Changes (by mkver):

 * status:  new => closed
 * resolution:   => worksforme

Comment:

 Your code as-is doesn't work: A startLoop function is called but not
 defined. I presume this while (1) loop is supposed to be the function body
 of said startLoop? If so, then I cannot reproduce your findings at all. I
 can't detect any leak or incrementing memory usage. So I am closing this
 as worksforme, but feel free to reopen it if you can provide more info.

 PS: Your read function is buggy: It might read more than buf_size.
-- 
Ticket URL: <https://trac.ffmpeg.org/ticket/9349#comment:1>
FFmpeg <https://ffmpeg.org>
FFmpeg issue tracker


More information about the FFmpeg-trac mailing list