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

FFmpeg trac at avcodec.org
Sat Feb 23 13:12:43 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             |
--------------------------------------+------------------------------------
Description changed by cehoyos:

Old description:

> (vlc ticket 8226)
> A sample was uploaded to videolan trac that allocates several Gigabyte at
> probing, I will attach the sample and a patch that improves the
> situation, but valgrind still reports 1,021,771,097 allocs with
> 1,902,250,215,888,401,222 bytes.
> {{{
> $ ffmpeg -i dos.pmp
> ffmpeg version N-50197-g23c9180 Copyright (c) 2000-2013 the FFmpeg
> developers
>   built on Feb 23 2013 13:10:17 with gcc 4.7 (SUSE Linux)
>   configuration: --enable-gpl --disable-indev=jack
>   libavutil      52. 17.103 / 52. 17.103
>   libavcodec     54. 92.100 / 54. 92.100
>   libavformat    54. 63.100 / 54. 63.100
>   libavdevice    54.  3.103 / 54.  3.103
>   libavfilter     3. 39.101 /  3. 39.101
>   libswscale      2.  2.100 /  2.  2.100
>   libswresample   0. 17.102 /  0. 17.102
>   libpostproc    52.  2.100 / 52.  2.100
> [pmp @ 0x32a8520] Unsupported audio format
> [NULL @ 0x32ae8e0] [IMGUTILS @ 0x7fffe55dd7e0] Picture size
> 1094795585x1094795585 is invalid
> [NULL @ 0x32ae8e0] Ignoring invalid width/height values
> [pmp @ 0x32a8520] Could not find codec parameters for stream 0 (Video:
> mpeg4, yuv420p): unspecified size
> Consider increasing the value for the 'analyzeduration' and 'probesize'
> options
> [pmp @ 0x32a8520] Could not find codec parameters for stream 1 (Audio:
> none, 1094795585 Hz, 4276546 channels): unspecified sample format
> Consider increasing the value for the 'analyzeduration' and 'probesize'
> options
> [pmp @ 0x32a8520] Could not find codec parameters for stream 2 (Audio:
> none, 1094795585 Hz, 4276546 channels): unspecified sample format
> Consider increasing the value for the 'analyzeduration' and 'probesize'
> options
> [pmp @ 0x32a8520] Could not find codec parameters for stream 3 (Audio:
> none, 1094795585 Hz, 4276546 channels): unspecified sample format
> Consider increasing the value for the 'analyzeduration' and 'probesize'
> options
> [pmp @ 0x32a8520] Could not find codec parameters for stream 4 (Audio:
> none, 1094795585 Hz, 4276546 channels): unspecified sample format
> Consider increasing the value for the 'analyzeduration' and 'probesize'
> options
> [pmp @ 0x32a8520] Could not find codec parameters for stream 5 (Audio:
> none, 1094795585 Hz, 4276546 channels): unspecified sample format
> Consider increasing the value for the 'analyzeduration' and 'probesize'
> options
> [pmp @ 0x32a8520] Could not find codec parameters for stream 6 (Audio:
> none, 1094795585 Hz, 4276546 channels): unspecified sample format
> Consider increasing the value for the 'analyzeduration' and 'probesize'
> options
> [pmp @ 0x32a8520] Could not find codec parameters for stream 7 (Audio:
> none, 1094795585 Hz, 4276546 channels): unspecified sample format
> Consider increasing the value for the 'analyzeduration' and 'probesize'
> options
> [pmp @ 0x32a8520] Could not find codec parameters for stream 8 (Audio:
> none, 1094795585 Hz, 4276546 channels): unspecified sample format
> Consider increasing the value for the 'analyzeduration' and 'probesize'
> options
> [pmp @ 0x32a8520] Could not find codec parameters for stream 9 (Audio:
> none, 1094795585 Hz, 4276546 channels): unspecified sample format
> Consider increasing the value for the 'analyzeduration' and 'probesize'
> options
> [pmp @ 0x32a8520] Could not find codec parameters for stream 10 (Audio:
> none, 1094795585 Hz, 4276546 channels): unspecified sample format
> Consider increasing the value for the 'analyzeduration' and 'probesize'
> options
>
> ...
>
> [pmp @ 0x32a8520] Could not find codec parameters for stream 16691
> (Audio: none, 1094795585 Hz, 4276546 channels): unspecified sample format
> Consider increasing the value for the 'analyzeduration' and 'probesize'
> options
> [pmp @ 0x32a8520] Could not find codec parameters for stream 16692
> (Audio: none, 1094795585 Hz, 4276546 channels): unspecified sample format
> Consider increasing the value for the 'analyzeduration' and 'probesize'
> options
> [pmp @ 0x32a8520] Could not find codec parameters for stream 16693
> (Audio: none, 1094795585 Hz, 4276546 channels): unspecified sample format
> Consider increasing the value for the 'analyzeduration' and 'probesize'
> options
> [pmp @ 0x32a8520] Could not find codec parameters for stream 16694
> (Audio: none, 1094795585 Hz, 4276546 channels): unspecified sample format
> Consider increasing the value for the 'analyzeduration' and 'probesize'
> options
> [pmp @ 0x32a8520] Could not find codec parameters for stream 16695
> (Audio: none, 1094795585 Hz, 4276546 channels): unspecified sample format
> Consider increasing the value for the 'analyzeduration' and 'probesize'
> options
> [pmp @ 0x32a8520] Could not find codec parameters for stream 16696
> (Audio: none, 1094795585 Hz, 4276546 channels): unspecified sample format
> Consider increasing the value for the 'analyzeduration' and 'probesize'
> options
> [pmp @ 0x32a8520] Could not find codec parameters for stream 16697
> (Audio: none, 1094795585 Hz, 4276546 channels): unspecified sample format
> Consider increasing the value for the 'analyzeduration' and 'probesize'
> options
> [pmp @ 0x32a8520] Could not find codec parameters for stream 16698
> (Audio: none, 1094795585 Hz, 4276546 channels): unspecified sample format
> Consider increasing the value for the 'analyzeduration' and 'probesize'
> options
> [pmp @ 0x32a8520] Could not find codec parameters for stream 16699
> (Audio: none, 1094795585 Hz, 4276546 channels): unspecified sample format
> Consider increasing the value for the 'analyzeduration' and 'probesize'
> options
> [pmp @ 0x32a8520] Could not find codec parameters for stream 16700
> (Audio: none, 1094795585 Hz, 4276546 channels): unspecified sample format
> Consider increasing the value for the 'analyzeduration' and 'probesize'
> options
> [pmp @ 0x32a8520] Could not find codec parameters for stream 16701
> (Audio: none, 1094795585 Hz, 4276546 channels): unspecified sample format
> Consider increasing the value for the 'analyzeduration' and 'probesize'
> options
> [pmp @ 0x32a8520] Could not find codec parameters for stream 16702
> (Audio: none, 1094795585 Hz, 4276546 channels): unspecified sample format
> Consider increasing the value for the 'analyzeduration' and 'probesize'
> options
> [pmp @ 0x32a8520] Could not find codec parameters for stream 16703
> (Audio: none, 1094795585 Hz, 4276546 channels): unspecified sample format
> Consider increasing the value for the 'analyzeduration' and 'probesize'
> options
> [pmp @ 0x32a8520] Could not find codec parameters for stream 16704
> (Audio: none, 1094795585 Hz, 4276546 channels): unspecified sample format
> Consider increasing the value for the 'analyzeduration' and 'probesize'
> options
> [pmp @ 0x32a8520] Could not find codec parameters for stream 16705
> (Audio: none, 1094795585 Hz, 4276546 channels): unspecified sample format
> Consider increasing the value for the 'analyzeduration' and 'probesize'
> options
> dos.pmp: could not find codec parameters
> }}}

New description:

 (vlc ticket 8226)
 A sample was uploaded to videolan trac that allocates several Gigabyte at
 probing, I will attach the sample and a patch that improves the situation,
 but valgrind still reports 1,021,771,097 allocs with
 1,902,250,215,888,401,222 bytes with the patch.
 {{{
 $ ffmpeg -i dos.pmp
 ffmpeg version N-50197-g23c9180 Copyright (c) 2000-2013 the FFmpeg
 developers
   built on Feb 23 2013 13:10:17 with gcc 4.7 (SUSE Linux)
   configuration: --enable-gpl --disable-indev=jack
   libavutil      52. 17.103 / 52. 17.103
   libavcodec     54. 92.100 / 54. 92.100
   libavformat    54. 63.100 / 54. 63.100
   libavdevice    54.  3.103 / 54.  3.103
   libavfilter     3. 39.101 /  3. 39.101
   libswscale      2.  2.100 /  2.  2.100
   libswresample   0. 17.102 /  0. 17.102
   libpostproc    52.  2.100 / 52.  2.100
 [pmp @ 0x32a8520] Unsupported audio format
 [NULL @ 0x32ae8e0] [IMGUTILS @ 0x7fffe55dd7e0] Picture size
 1094795585x1094795585 is invalid
 [NULL @ 0x32ae8e0] Ignoring invalid width/height values
 [pmp @ 0x32a8520] Could not find codec parameters for stream 0 (Video:
 mpeg4, yuv420p): unspecified size
 Consider increasing the value for the 'analyzeduration' and 'probesize'
 options
 [pmp @ 0x32a8520] Could not find codec parameters for stream 1 (Audio:
 none, 1094795585 Hz, 4276546 channels): unspecified sample format
 Consider increasing the value for the 'analyzeduration' and 'probesize'
 options
 [pmp @ 0x32a8520] Could not find codec parameters for stream 2 (Audio:
 none, 1094795585 Hz, 4276546 channels): unspecified sample format
 Consider increasing the value for the 'analyzeduration' and 'probesize'
 options
 [pmp @ 0x32a8520] Could not find codec parameters for stream 3 (Audio:
 none, 1094795585 Hz, 4276546 channels): unspecified sample format
 Consider increasing the value for the 'analyzeduration' and 'probesize'
 options
 [pmp @ 0x32a8520] Could not find codec parameters for stream 4 (Audio:
 none, 1094795585 Hz, 4276546 channels): unspecified sample format
 Consider increasing the value for the 'analyzeduration' and 'probesize'
 options
 [pmp @ 0x32a8520] Could not find codec parameters for stream 5 (Audio:
 none, 1094795585 Hz, 4276546 channels): unspecified sample format
 Consider increasing the value for the 'analyzeduration' and 'probesize'
 options
 [pmp @ 0x32a8520] Could not find codec parameters for stream 6 (Audio:
 none, 1094795585 Hz, 4276546 channels): unspecified sample format
 Consider increasing the value for the 'analyzeduration' and 'probesize'
 options
 [pmp @ 0x32a8520] Could not find codec parameters for stream 7 (Audio:
 none, 1094795585 Hz, 4276546 channels): unspecified sample format
 Consider increasing the value for the 'analyzeduration' and 'probesize'
 options
 [pmp @ 0x32a8520] Could not find codec parameters for stream 8 (Audio:
 none, 1094795585 Hz, 4276546 channels): unspecified sample format
 Consider increasing the value for the 'analyzeduration' and 'probesize'
 options
 [pmp @ 0x32a8520] Could not find codec parameters for stream 9 (Audio:
 none, 1094795585 Hz, 4276546 channels): unspecified sample format
 Consider increasing the value for the 'analyzeduration' and 'probesize'
 options
 [pmp @ 0x32a8520] Could not find codec parameters for stream 10 (Audio:
 none, 1094795585 Hz, 4276546 channels): unspecified sample format
 Consider increasing the value for the 'analyzeduration' and 'probesize'
 options

 ...

 [pmp @ 0x32a8520] Could not find codec parameters for stream 16691 (Audio:
 none, 1094795585 Hz, 4276546 channels): unspecified sample format
 Consider increasing the value for the 'analyzeduration' and 'probesize'
 options
 [pmp @ 0x32a8520] Could not find codec parameters for stream 16692 (Audio:
 none, 1094795585 Hz, 4276546 channels): unspecified sample format
 Consider increasing the value for the 'analyzeduration' and 'probesize'
 options
 [pmp @ 0x32a8520] Could not find codec parameters for stream 16693 (Audio:
 none, 1094795585 Hz, 4276546 channels): unspecified sample format
 Consider increasing the value for the 'analyzeduration' and 'probesize'
 options
 [pmp @ 0x32a8520] Could not find codec parameters for stream 16694 (Audio:
 none, 1094795585 Hz, 4276546 channels): unspecified sample format
 Consider increasing the value for the 'analyzeduration' and 'probesize'
 options
 [pmp @ 0x32a8520] Could not find codec parameters for stream 16695 (Audio:
 none, 1094795585 Hz, 4276546 channels): unspecified sample format
 Consider increasing the value for the 'analyzeduration' and 'probesize'
 options
 [pmp @ 0x32a8520] Could not find codec parameters for stream 16696 (Audio:
 none, 1094795585 Hz, 4276546 channels): unspecified sample format
 Consider increasing the value for the 'analyzeduration' and 'probesize'
 options
 [pmp @ 0x32a8520] Could not find codec parameters for stream 16697 (Audio:
 none, 1094795585 Hz, 4276546 channels): unspecified sample format
 Consider increasing the value for the 'analyzeduration' and 'probesize'
 options
 [pmp @ 0x32a8520] Could not find codec parameters for stream 16698 (Audio:
 none, 1094795585 Hz, 4276546 channels): unspecified sample format
 Consider increasing the value for the 'analyzeduration' and 'probesize'
 options
 [pmp @ 0x32a8520] Could not find codec parameters for stream 16699 (Audio:
 none, 1094795585 Hz, 4276546 channels): unspecified sample format
 Consider increasing the value for the 'analyzeduration' and 'probesize'
 options
 [pmp @ 0x32a8520] Could not find codec parameters for stream 16700 (Audio:
 none, 1094795585 Hz, 4276546 channels): unspecified sample format
 Consider increasing the value for the 'analyzeduration' and 'probesize'
 options
 [pmp @ 0x32a8520] Could not find codec parameters for stream 16701 (Audio:
 none, 1094795585 Hz, 4276546 channels): unspecified sample format
 Consider increasing the value for the 'analyzeduration' and 'probesize'
 options
 [pmp @ 0x32a8520] Could not find codec parameters for stream 16702 (Audio:
 none, 1094795585 Hz, 4276546 channels): unspecified sample format
 Consider increasing the value for the 'analyzeduration' and 'probesize'
 options
 [pmp @ 0x32a8520] Could not find codec parameters for stream 16703 (Audio:
 none, 1094795585 Hz, 4276546 channels): unspecified sample format
 Consider increasing the value for the 'analyzeduration' and 'probesize'
 options
 [pmp @ 0x32a8520] Could not find codec parameters for stream 16704 (Audio:
 none, 1094795585 Hz, 4276546 channels): unspecified sample format
 Consider increasing the value for the 'analyzeduration' and 'probesize'
 options
 [pmp @ 0x32a8520] Could not find codec parameters for stream 16705 (Audio:
 none, 1094795585 Hz, 4276546 channels): unspecified sample format
 Consider increasing the value for the 'analyzeduration' and 'probesize'
 options
 dos.pmp: could not find codec parameters
 }}}

--

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


More information about the FFmpeg-trac mailing list