[FFmpeg-trac] #2298(avformat:new): High memory allocation with broken pmp file

FFmpeg trac at avcodec.org
Sat Feb 23 19:42:25 CET 2013


#2298: High memory allocation with broken pmp file
--------------------------------------+------------------------------------
             Reporter:  cehoyos       |                    Owner:
                 Type:  defect        |                   Status:  new
             Priority:  normal        |                Component:  avformat
              Version:  git-master    |               Resolution:
             Keywords:  pmp videolan  |               Blocked By:
             Blocking:                |  Reproduced by developer:  0
Analyzed by developer:  0             |
--------------------------------------+------------------------------------

Comment (by reimar):

 You're looking at the completely wrong place, 16k streams is not a
 problem, and 16 streams is more than ridulously low, there are more than
 enough real-world files using more than 30 stream.
 I'm quite sure the issue is in a missing EOF check.
 However in addition the valgrind numbers you quote give a completely wrong
 impression, it is not possible to allocate than much data, this is just a
 huge number of reallocs.
 I do not think there allocation ever becomes unreasonably large, however
 we do have a av_max_alloc function and I have a suspicion this might be a
 user error, if a user does not want large allocations they should forbid
 them (though I admit there might be a good argument to be made to default
 to a lower value on 32 bit systems).

-- 
Ticket URL: <https://ffmpeg.org/trac/ffmpeg/ticket/2298#comment:8>
FFmpeg <http://ffmpeg.org>
FFmpeg issue tracker


More information about the FFmpeg-trac mailing list