[FFmpeg-trac] #5908(avcodec:new): audiotoolbox ac3 decoder will hang on some inputs

FFmpeg trac at avcodec.org
Tue Oct 25 22:00:19 EEST 2016


#5908: audiotoolbox ac3 decoder will hang on some inputs
-------------------------------------+-------------------------------------
             Reporter:  tmm1         |                    Owner:
                 Type:  defect       |                   Status:  new
             Priority:  normal       |                Component:  avcodec
              Version:  git-master   |               Resolution:
             Keywords:               |               Blocked By:
  audiotoolbox deadlock osx          |  Reproduced by developer:  0
             Blocking:               |
Analyzed by developer:  0            |
-------------------------------------+-------------------------------------

Comment (by tmm1):

 {{{
 $ ./ffmpeg -i /tmp/ac3_at_deadlock.ts
 ffmpeg version N-82119-g1342339 Copyright (c) 2000-2016 the FFmpeg
 developers
   built with Apple LLVM version 8.0.0 (clang-800.0.38)
   configuration: --prefix=/tmp/ffmpeg-master --enable-shared --disable-
 static --disable-stripping
   libavutil      55. 33.100 / 55. 33.100
   libavcodec     57. 63.103 / 57. 63.103
   libavformat    57. 55.100 / 57. 55.100
   libavdevice    57.  0.103 / 57.  0.103
   libavfilter     6. 64.100 /  6. 64.100
   libswscale      4.  1.100 /  4.  1.100
   libswresample   2.  2.100 /  2.  2.100
 [mpeg2video @ 0x7ff5ea000600] Invalid frame dimensions 0x0.
     Last message repeated 13 times
 [mpegts @ 0x7ff5ea002600] Could not find codec parameters for stream 2
 (Unknown: none ([5][0][0][0] / 0x0005)): unknown codec
 Consider increasing the value for the 'analyzeduration' and 'probesize'
 options
 Input #0, mpegts, from '/tmp/ac3_at_deadlock.ts':
   Duration: 00:00:31.75, start: 58675.240989, bitrate: 11415 kb/s
   Program 602
     Stream #0:0[0x1785]: Video: mpeg2video (Main) ([2][0][0][0] / 0x0002),
 yuv420p(tv, bottom first), 1280x720 [SAR 1:1 DAR 16:9], Closed Captions,
 59.94 fps, 59.94 tbr, 90k tbn, 119.88 tbc
     Stream #0:1[0x1786](eng): Audio: ac3 (AC-3 / 0x332D4341), 48000 Hz,
 stereo, fltp, 192 kb/s
     Stream #0:2[0x1788]: Unknown: none ([5][0][0][0] / 0x0005)
 At least one output file must be specified
 }}}

 {{{
 * thread #6: tid = 0x96c216, 0x00007fffa6bbbefd
 AudioToolbox`AudioCodecProduceOutputPackets + 131, name = 'decoder'
   * frame #0: 0x00007fffa6bbbefd
 AudioToolbox`AudioCodecProduceOutputPackets + 131
     frame #1: 0x00007fffa6a9daa3
 AudioToolbox`CodecConverter::DecoderFillBuffer(unsigned int&,
 AudioBufferList&, AudioStreamPacketDescription*) + 1199
     frame #2: 0x00007fffa6aa9c93
 AudioToolbox`BufferedAudioConverter::GetInputBytes(unsigned int, unsigned
 int&, CABufferList const*&) + 135
     frame #3: 0x00007fffa6aa9b82
 AudioToolbox`CBRConverter::RenderOutput(CABufferList*, unsigned int,
 unsigned int&, AudioStreamPacketDescription*) + 106
     frame #4: 0x00007fffa6a9cc9d
 AudioToolbox`BufferedAudioConverter::FillBuffer(unsigned int&,
 AudioBufferList&, AudioStreamPacketDescription*) + 281
     frame #5: 0x00007fffa6a9cf7f
 AudioToolbox`AudioConverterChain::RenderOutput(CABufferList*, unsigned
 int, unsigned int&, AudioStreamPacketDescription*) + 99
     frame #6: 0x00007fffa6a9cc9d
 AudioToolbox`BufferedAudioConverter::FillBuffer(unsigned int&,
 AudioBufferList&, AudioStreamPacketDescription*) + 281
     frame #7: 0x00007fffa6a9c76f
 AudioToolbox`AudioConverterFillComplexBuffer + 282
     frame #8: 0x00000001073c1fe8
 libavcodec.57.dylib`ffat_decode(avctx=0x00007fb0b701c200,
 data=0x00007fb0b6d0a580, got_frame_ptr=<unavailable>,
 avpkt=0x00007000098fd4c8) + 680 at audiotoolboxdec.c:549 [opt]
     frame #9: 0x0000000107914560
 libavcodec.57.dylib`avcodec_decode_audio4(avctx=0x00007fb0b701c200,
 frame=<unavailable>, got_frame_ptr=0x00007000098fd5d4,
 avpkt=0x000000010e4486d0) + 256 at utils.c:2362 [opt]
     frame #10: 0x00000001068416bb
 ffplay_g`decoder_decode_frame(d=<unavailable>, frame=<unavailable>,
 sub=<unavailable>) + 747 at ffplay.c:597 [opt]
     frame #11: 0x000000010683f401 ffplay_g`audio_thread(arg=<unavailable>)
 + 1153 at ffplay.c:2025 [opt]
     frame #12: 0x0000000106e75442 libSDL2-2.0.0.dylib`SDL_RunThread + 60
     frame #13: 0x0000000106eb22e5 libSDL2-2.0.0.dylib`RunThread + 9
     frame #14: 0x00007fffbce5dabb libsystem_pthread.dylib`_pthread_body +
 180
     frame #15: 0x00007fffbce5da07 libsystem_pthread.dylib`_pthread_start +
 286
     frame #16: 0x00007fffbce5d231 libsystem_pthread.dylib`thread_start +
 13
 }}}

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


More information about the FFmpeg-trac mailing list