[FFmpeg-trac] #1634(avformat:open): Leak on probing particular file

FFmpeg trac at avcodec.org
Sat Aug 11 14:49:51 CEST 2012


#1634: Leak on probing particular file
------------------------------------+------------------------------------
             Reporter:  Krieger     |                    Owner:
                 Type:  defect      |                   Status:  open
             Priority:  normal      |                Component:  avformat
              Version:  git-master  |               Resolution:
             Keywords:              |               Blocked By:
             Blocking:              |  Reproduced by developer:  1
Analyzed by developer:  0           |
------------------------------------+------------------------------------
Changes (by cehoyos):

 * status:  new => open
 * reproduced:  0 => 1


Comment:

 {{{
 $ valgrind --leak-check=full ffmpeg_g -i leak.ts
 ==19387== Memcheck, a memory error detector
 ==19387== Copyright (C) 2002-2009, and GNU GPL'd, by Julian Seward et al.
 ==19387== Using Valgrind-3.5.0 and LibVEX; rerun with -h for copyright
 info
 ==19387== Command: ffmpeg_g -i leak.ts
 ==19387==
 ffmpeg version N-43451-g48d20b9 Copyright (c) 2000-2012 the FFmpeg
 developers
   built on Aug 11 2012 14:43:15 with gcc 4.6.1 (GCC)
   configuration: --cc='/usr/local/gcc-4.6.1/bin/gcc -m32' --disable-
 optimizations
   libavutil      51. 67.100 / 51. 67.100
   libavcodec     54. 51.100 / 54. 51.100
   libavformat    54. 23.100 / 54. 23.100
   libavdevice    54.  2.100 / 54.  2.100
   libavfilter     3.  7.100 /  3.  7.100
   libswscale      2.  1.101 /  2.  1.101
   libswresample   0. 15.100 /  0. 15.100
 [mpeg2video @ 0x508acc0] mpeg_decode_postinit() failure
     Last message repeated 2 times
 [mpegts @ 0x5068660] PES packet size mismatch
     Last message repeated 1 times
 [mp1 @ 0x5187d20] Header missing
 [mpeg2video @ 0x508acc0] mpeg_decode_postinit() failure
 [mpeg2video @ 0x514f540] mpeg_decode_postinit() failure
 [mp1 @ 0x5187d20] Header missing
 [mpeg2video @ 0x514f540] mpeg_decode_postinit() failure
 [mpeg2video @ 0x508acc0] mpeg_decode_postinit() failure
     Last message repeated 2 times
 [mp1 @ 0x5187d20] Header missing
     Last message repeated 1 times
 [mpeg2video @ 0x514f540] mpeg_decode_postinit() failure
 [mp1 @ 0x5187d20] Header missing
 [mpeg2video @ 0x514f540] mpeg_decode_postinit() failure
     Last message repeated 1 times
 [mpeg2video @ 0x508acc0] mpeg_decode_postinit() failure
     Last message repeated 2 times
 [mp1 @ 0x5187d20] Header missing
     Last message repeated 2 times
 [mpeg2video @ 0x514f540] mpeg_decode_postinit() failure
     Last message repeated 1 times
 [mp1 @ 0x5187d20] Header missing
 [mpeg2video @ 0x514f540] mpeg_decode_postinit() failure
 [mpeg2video @ 0x508acc0] mpeg_decode_postinit() failure
 [mp1 @ 0x5187d20] Header missing
 [mpeg2video @ 0x508acc0] mpeg_decode_postinit() failure
     Last message repeated 1 times
 [mpeg2video @ 0x514f540] mpeg_decode_postinit() failure
 [mp1 @ 0x5187d20] Header missing
 [mpeg2video @ 0x514f540] mpeg_decode_postinit() failure
     Last message repeated 1 times
 [mp1 @ 0x5187d20] Header missing
     Last message repeated 1 times
 [mpeg2video @ 0x514f540] mpeg_decode_postinit() failure
     Last message repeated 1 times
 [mp1 @ 0x5187d20] Header missing
 [mpeg2video @ 0x514f540] mpeg_decode_postinit() failure
 [mp1 @ 0x5187d20] Header missing
 [mpeg2video @ 0x508acc0] mpeg_decode_postinit() failure
 [mp1 @ 0x5187d20] Header missing
     Last message repeated 1 times
 [mpeg2video @ 0x514f540] mpeg_decode_postinit() failure
 [mp1 @ 0x5187d20] Header missing
     Last message repeated 28 times
 [mpegts @ 0x5068660] decoding for stream 3 failed
 [mpegts @ 0x5068660] Could not find codec parameters for stream 3 (Audio:
 mp1 ([6][0][0][0] / 0x0006), 0 channels, s16): unspecified sample size
 Consider increasing the value for the 'analyzeduration' and 'probesize'
 options
 [mpegts @ 0x5068660] PES packet size mismatch
     Last message repeated 1 times
 Input #0, mpegts, from 'leak.ts':
   Duration: 04:13:50.46, start: 21502.044789, bitrate: 0 kb/s
   Program 1430
     Metadata:
       service_name    : Rossia 2
       service_provider: GTSS
     Stream #0:0[0x597]: Video: mpeg2video (Main) ([2][0][0][0] / 0x0002),
 yuv420p, 720x576 [SAR 16:15 DAR 4:3], 15000 kb/s, 33.83 fps, 25 tbr, 90k
 tbn, 50 tbc
     Stream #0:1[0x598](rus): Audio: mp2 ([4][0][0][0] / 0x0004), 48000 Hz,
 stereo, s16, 192 kb/s
   Program 10106
     Stream #0:2[0x145]: Video: mpeg2video (Main) ([2][0][0][0] / 0x0002),
 yuv420p, 704x576 [SAR 16:11 DAR 16:9], 15000 kb/s, 35.50 fps, 25 tbr, 90k
 tbn, 50 tbc
     Stream #0:4[0x19a](rus): Audio: mp2 ([4][0][0][0] / 0x0004), 48000 Hz,
 stereo, s16, 192 kb/s (clean effects)
     Stream #0:3[0x1fe](rus): Audio: mp1 ([6][0][0][0] / 0x0006), 0
 channels, s16
   Program 1
     Metadata:
       service_name    : CTO
       service_provider: Scopus Network Technologies
   Program 1420
     Metadata:
       service_name    : Rossia 24
       service_provider: GTSS
   Program 1440
     Metadata:
       service_name    : Rossia K
       service_provider: GTSS
   Program 1460
     Metadata:
       service_name    : Sport 1
       service_provider: GTSS
   Program 1500
     Metadata:
       service_name    : Disney +0
       service_provider: GTSS
   Program 1600
     Metadata:
       service_name    : SET Russia
       service_provider: GTSS
   Program 1700
     Metadata:
       service_name    : AXN-ScFi-Ru
       service_provider: GTSS
   Program 1710
     Metadata:
       service_name    : 5 kanal
       service_provider: GeoTelecom
   Program 1770
     Metadata:
       service_name    : Sarafan
       service_provider: GTSS
   Program 10410
     Metadata:
       service_name    : Nostalgiya
       service_provider: HTB+
   Program 10411
     Metadata:
       service_name    : Sport plus
       service_provider: HTB+
   Program 14803
     Metadata:
       service_name    : Detskii Mir-Teleclub
       service_provider: EUTELSAT
 At least one output file must be specified
 ==19387==
 ==19387== HEAP SUMMARY:
 ==19387==     in use at exit: 160,476 bytes in 1 blocks
 ==19387==   total heap usage: 2,061 allocs, 2,060 frees, 28,510,433 bytes
 allocated
 ==19387==
 ==19387== 160,476 bytes in 1 blocks are possibly lost in loss record 1 of
 1
 ==19387==    at 0x4CADD82: realloc (in
 /usr/lib64/valgrind/vgpreload_memcheck-x86-linux.so)
 ==19387==    by 0x87F2899: av_realloc (mem.c:159)
 ==19387==    by 0x81778B5: probe_codec (utils.c:684)
 ==19387==    by 0x8177DE6: ff_read_packet (utils.c:786)
 ==19387==    by 0x8179B70: read_frame_internal (utils.c:1305)
 ==19387==    by 0x817E05C: avformat_find_stream_info (utils.c:2628)
 ==19387==    by 0x804DD0D: opt_input_file (ffmpeg_opt.c:751)
 ==19387==    by 0x806160F: parse_option (cmdutils.c:314)
 ==19387==    by 0x8061739: parse_options (cmdutils.c:347)
 ==19387==    by 0x8060B9C: main (ffmpeg.c:3078)
 ==19387==
 ==19387== LEAK SUMMARY:
 ==19387==    definitely lost: 0 bytes in 0 blocks
 ==19387==    indirectly lost: 0 bytes in 0 blocks
 ==19387==      possibly lost: 160,476 bytes in 1 blocks
 ==19387==    still reachable: 0 bytes in 0 blocks
 ==19387==         suppressed: 0 bytes in 0 blocks
 ==19387==
 ==19387== For counts of detected and suppressed errors, rerun with: -v
 ==19387== ERROR SUMMARY: 1 errors from 1 contexts (suppressed: 3 from 3)
 }}}

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


More information about the FFmpeg-trac mailing list