1. 18 Aug, 2015 17 commits
  2. 17 Aug, 2015 9 commits
  3. 16 Aug, 2015 11 commits
  4. 15 Aug, 2015 3 commits
    • Martin Storsjö's avatar
      libfdk-aacdec: Clean up properly if the init fails · f34b152e
      Martin Storsjö authored
      Previously most of the error paths leaked.
      
      Also add FF_CODEC_CAP_INIT_THREADSAFE while adding caps_internal;
      this decoder wrapper doesn't have any static data that is initialized.
      Signed-off-by: 's avatarMartin Storsjö <martin@martin.st>
      f34b152e
    • Martin Storsjö's avatar
      libfdk-aacdec: Always decode into an intermediate buffer · 1b90433f
      Martin Storsjö authored
      For ADTS streams, the output format (number of channels, frame size)
      can change at any point (with the latest version of fdk-aac, the decoder
      seems to change format after a handful of frames, not outputting the
      right format immediately, for cases that worked fine with the earlier
      version of the lib).
      
      Previously, the decoder decoded straight into the output frame once the
      number of channels and frame size was known. This obviously does not
      work if the number of channels or frame size changes.
      
      The alternative would be to allocate the AVFrame with the maximum number
      of channels and frame size, and change them afterward decoding into it,
      but that may cause confusion to users e.g. of the get_buffer callback.
      This solution should be more robust.
      
      CC: libav-stable@libav.org
      Signed-off-by: 's avatarMartin Storsjö <martin@martin.st>
      1b90433f
    • Martin Storsjö's avatar
      libfdk-aacdec: Bump the max number of channels to 8 · 87de6ddb
      Martin Storsjö authored
      In the latest version of fdk-aac, the decoder can output up to 8
      channels; take this into account when preallocating buffers that
      need to fit the output from any packet.
      
      CC: libav-stable@libav.org
      Signed-off-by: 's avatarMartin Storsjö <martin@martin.st>
      87de6ddb