[FFmpeg-trac] #1441(undetermined:open): Segfault using libfaac/libaacplus, -absf aac_adtstoasc, and mpegts muxer

FFmpeg trac at avcodec.org
Fri Jul 20 16:55:06 CEST 2012


#1441: Segfault using libfaac/libaacplus, -absf aac_adtstoasc, and mpegts muxer
-------------------------------------+-------------------------------------
             Reporter:  burek        |                    Owner:
                 Type:  defect       |                   Status:  open
             Priority:  normal       |                Component:
              Version:  git-master   |  undetermined
             Keywords:  libfaac      |               Resolution:
  libaacplus mpegts absf             |               Blocked By:
  aac_adtstoasc                      |  Reproduced by developer:  1
             Blocking:               |
Analyzed by developer:  0            |
-------------------------------------+-------------------------------------
Changes (by cehoyos):

 * version:  unspecified => git-master


Comment:

 {{{
 $ valgrind ./ffmpeg_g -f lavfi -i aevalsrc="2*PI*400*t" -acodec libfaac
 -absf aac_adtstoasc -f mpegts -y /dev/null
 ==4919== Memcheck, a memory error detector.
 ==4919== Copyright (C) 2002-2007, and GNU GPL'd, by Julian Seward et al.
 ==4919== Using LibVEX rev 1732, a library for dynamic binary translation.
 ==4919== Copyright (C) 2004-2007, and GNU GPL'd, by OpenWorks LLP.
 ==4919== Using valgrind-3.2.3, a dynamic binary instrumentation framework.
 ==4919== Copyright (C) 2000-2007, and GNU GPL'd, by Julian Seward et al.
 ==4919== For more details, rerun with: -v
 ==4919==
 ffmpeg version N-42698-g99c4e91 Copyright (c) 2000-2012 the FFmpeg
 developers
   built on Jul 20 2012 16:47:38 with gcc 4.3.2 (GCC)
   configuration: --cc=/usr/local/gcc-4.3.2/bin/gcc --enable-libfaac
 --enable-nonfree --disable-optimizations
   libavutil      51. 65.100 / 51. 65.100
   libavcodec     54. 42.100 / 54. 42.100
   libavformat    54. 18.100 / 54. 18.100
   libavdevice    54.  1.100 / 54.  1.100
   libavfilter     3.  2.100 /  3.  2.100
   libswscale      2.  1.100 /  2.  1.100
   libswresample   0. 15.100 /  0. 15.100
 [lavfi @ 0x45d76e0] Estimating duration from bitrate, this may be
 inaccurate
 Input #0, lavfi, from 'aevalsrc=2*PI*400*t':
   Duration: N/A, start: 0.000000, bitrate: 2822 kb/s
     Stream #0:0: Audio: pcm_f64le, 44100 Hz, mono, dbl, 2822 kb/s
 [mpegts @ 0x45f61e0] muxrate VBR, pcr every 4 pkts, sdt every 200, pat/pmt
 every 40 pkts
 Output #0, mpegts, to '/dev/null':
   Metadata:
     encoder         : Lavf54.18.100
     Stream #0:0: Audio: aac, 44100 Hz, mono, s16, 128 kb/s
 Stream mapping:
   Stream #0:0 -> #0:0 (pcm_f64le -> libfaac)
 Press [q] to stop, [?] for help
 [mpegts @ 0x45f61e0] AAC bitstream not in ADTS format and extradata
 missing
 ==4919== Invalid free() / delete / delete[]
 ==4919==    at 0x402243F: free (in
 /usr/lib/valgrind/x86-linux/vgpreload_memcheck.so)
 ==4919==    by 0x88544F6: av_free (mem.c:186)
 ==4919==    by 0x81BCC8B: av_destruct_packet (avpacket.c:46)
 ==4919==    by 0x81BD1E7: av_free_packet (avpacket.c:169)
 ==4919==    by 0x8185EC9: av_interleaved_write_frame (utils.c:3650)
 ==4919==    by 0x804EDC6: write_frame (ffmpeg.c:1544)
 ==4919==    by 0x804F4B5: do_audio_out (ffmpeg.c:1605)
 ==4919==    by 0x8050E50: poll_filters (ffmpeg.c:1994)
 ==4919==    by 0x805863C: transcode (ffmpeg.c:3737)
 ==4919==    by 0x8060B3F: main (ffmpeg.c:6049)
 ==4919==  Address 0x46AAA27 is 7 bytes inside a block of size 164 alloc'd
 ==4919==    at 0x4021A50: memalign (in
 /usr/lib/valgrind/x86-linux/vgpreload_memcheck.so)
 ==4919==    by 0x4021AAA: posix_memalign (in
 /usr/lib/valgrind/x86-linux/vgpreload_memcheck.so)
 ==4919==    by 0x88543AB: av_malloc (mem.c:95)
 ==4919==    by 0x81BCFA4: av_dup_packet (avpacket.c:143)
 ==4919==    by 0x85AC32B: avcodec_encode_audio2 (utils.c:1192)
 ==4919==    by 0x804F007: do_audio_out (ffmpeg.c:1584)
 ==4919==    by 0x8050E50: poll_filters (ffmpeg.c:1994)
 ==4919==    by 0x805863C: transcode (ffmpeg.c:3737)
 ==4919==    by 0x8060B3F: main (ffmpeg.c:6049)
 av_interleaved_write_frame(): Invalid data found when processing input
 ==4919==
 ==4919== ERROR SUMMARY: 1 errors from 1 contexts (suppressed: 3 from 1)
 ==4919== malloc/free: in use at exit: 11,760,623 bytes in 88 blocks.
 ==4919== malloc/free: 733 allocs, 646 frees, 12,212,796 bytes allocated.
 ==4919== For counts of detected errors, rerun with: -v
 ==4919== searching for pointers to 88 not-freed blocks.
 ==4919== checked 18,037,620 bytes.
 ==4919==
 ==4919== LEAK SUMMARY:
 ==4919==    definitely lost: 13,614 bytes in 14 blocks.
 ==4919==      possibly lost: 11,370,148 bytes in 1 blocks.
 ==4919==    still reachable: 376,861 bytes in 73 blocks.
 ==4919==         suppressed: 0 bytes in 0 blocks.
 ==4919== Rerun with --leak-check=full to see details of leaked memory.
 }}}

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


More information about the FFmpeg-trac mailing list