Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/FFmpeg/FFmpeg.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
AgeCommit message (Collapse)Author
2017-11-02Merge commit '97cfe1d8bd1968143e2ba9aa46ebe9504a835e24'James Almer
* commit '97cfe1d8bd1968143e2ba9aa46ebe9504a835e24': Convert all AVClass struct declarations to designated initializers. Merged-by: James Almer <jamrial@gmail.com>
2017-06-12Convert all AVClass struct declarations to designated initializers.Diego Biurrun
2017-05-28avcodec/libfdk-aacdec: Correct buffer_size parameterMichael Niedermayer
the timeDataSize argument to aacDecoder_DecodeFrame() seems undocumented and until 2016 04 (203e3f28fbebec7011342017fafc2a0bda0ce530) unused. after that commit libfdk-aacdec interprets it as size in sample units and memsets that on error. FFmpeg as well as others (like GStreamer) did interpret it as size in bytes Fixes: 1442/clusterfuzz-testcase-minimized-4540199973421056 (This requires recent libfdk to reproduce) Found-by: continuous fuzzing process https://github.com/google/oss-fuzz/tree/master/projects/ffmpeg Signed-off-by: Michael Niedermayer <michael@niedermayer.cc>
2015-09-04avcodec/libfdk-aacdec: Remove unused variableMichael Niedermayer
Signed-off-by: Michael Niedermayer <michael@niedermayer.cc>
2015-08-31libfdk-aacdec: Remove unused variableVittorio Giovara
2015-08-18Merge commit 'f34b152eb7b7e8d2aee57c710a072cf74173fbe1'Hendrik Leppkes
* commit 'f34b152eb7b7e8d2aee57c710a072cf74173fbe1': libfdk-aacdec: Clean up properly if the init fails Merged-by: Hendrik Leppkes <h.leppkes@gmail.com>
2015-08-18Merge commit '1b90433f79de857550d4d8c35c89fbe954920594'Hendrik Leppkes
* commit '1b90433f79de857550d4d8c35c89fbe954920594': libfdk-aacdec: Always decode into an intermediate buffer Conflicts: libavcodec/libfdk-aacdec.c Merged-by: Hendrik Leppkes <h.leppkes@gmail.com>
2015-08-18Merge commit '87de6ddb7b7674e329d5c96677bd8685bc7f7855'Hendrik Leppkes
* commit '87de6ddb7b7674e329d5c96677bd8685bc7f7855': libfdk-aacdec: Bump the max number of channels to 8 Merged-by: Hendrik Leppkes <h.leppkes@gmail.com>
2015-08-16libfdk-aacdec: Clean up properly if the init failsMartin Storsjö
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: Martin Storsjö <martin@martin.st>
2015-08-16libfdk-aacdec: Always decode into an intermediate bufferMartin Storsjö
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: Martin Storsjö <martin@martin.st>
2015-08-16libfdk-aacdec: Bump the max number of channels to 8Martin Storsjö
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: Martin Storsjö <martin@martin.st>
2015-07-27Merge commit 'def97856de6021965db86c25a732d78689bd6bb0'Michael Niedermayer
* commit 'def97856de6021965db86c25a732d78689bd6bb0': lavc: AV-prefix all codec capabilities Conflicts: cmdutils.c ffmpeg.c ffplay.c libavcodec/8svx.c libavcodec/aacenc.c libavcodec/ac3dec.c libavcodec/adpcm.c libavcodec/alac.c libavcodec/atrac3plusdec.c libavcodec/bink.c libavcodec/dnxhddec.c libavcodec/dvdec.c libavcodec/dvenc.c libavcodec/ffv1dec.c libavcodec/ffv1enc.c libavcodec/fic.c libavcodec/flacdec.c libavcodec/flacenc.c libavcodec/flvdec.c libavcodec/fraps.c libavcodec/frwu.c libavcodec/gifdec.c libavcodec/h261dec.c libavcodec/hevc.c libavcodec/iff.c libavcodec/imc.c libavcodec/libopenjpegdec.c libavcodec/libvo-aacenc.c libavcodec/libvorbisenc.c libavcodec/libvpxdec.c libavcodec/libvpxenc.c libavcodec/libx264.c libavcodec/mjpegbdec.c libavcodec/mjpegdec.c libavcodec/mpegaudiodec_float.c libavcodec/msmpeg4dec.c libavcodec/mxpegdec.c libavcodec/nvenc_h264.c libavcodec/nvenc_hevc.c libavcodec/pngdec.c libavcodec/qpeg.c libavcodec/ra288.c libavcodec/rv10.c libavcodec/s302m.c libavcodec/sp5xdec.c libavcodec/takdec.c libavcodec/tiff.c libavcodec/tta.c libavcodec/utils.c libavcodec/v210dec.c libavcodec/vp6.c libavcodec/vp9.c libavcodec/wavpack.c libavcodec/yop.c Merged-by: Michael Niedermayer <michael@niedermayer.cc>
2015-07-27lavc: AV-prefix all codec capabilitiesVittorio Giovara
Express bitfields more simply. Signed-off-by: Vittorio Giovara <vittorio.giovara@gmail.com>
2015-03-02avcodec/libfdk-aacdec: Change conceal_method to int, its accessed via ↵Michael Niedermayer
AVOption as int This fixes depending on implementation defined behavior Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
2015-01-08Merge commit '2dbd35b00c6433e587d5f44d5dbc8972ebbaa88e'Michael Niedermayer
* commit '2dbd35b00c6433e587d5f44d5dbc8972ebbaa88e': libfdk-aacdec: Make sure decoding doesn't add any extra delay in the latest version of fdk-aac Merged-by: Michael Niedermayer <michaelni@gmx.at>
2015-01-08libfdk-aacdec: Make sure decoding doesn't add any extra delay in the latest ↵Martin Storsjö
version of fdk-aac The latest version added support for a new option for enabling a signal level limiter, which adds some extra delay. In fdk-aac, this is enabled by default, but disable it by default here since we'd rather have zero-delay decoding. Signed-off-by: Martin Storsjö <martin@martin.st>
2014-12-11Merge commit 'c7921a480467876ece06566e0efd8f6bce9d1903'Michael Niedermayer
* commit 'c7921a480467876ece06566e0efd8f6bce9d1903': libfdk-aacdec: Fix a boundary check Merged-by: Michael Niedermayer <michaelni@gmx.at>
2014-12-10libfdk-aacdec: Fix a boundary checkMartin Storsjö
This avoids potential out of bounds writes, with potential future versions of the library. Bug-Id: CID 1254945 CC: libav-stable@libav.org Signed-off-by: Martin Storsjö <martin@martin.st>
2014-11-10libfdk-aacdec: Support building with the latest version of fdk-aacMartin Storsjö
The latest fdk-aac code drop (from android 5.0) changed the channel layout enums (changing the value of existing enum constants), and renamed the option for downmixing. The failsafe comparison between ctype and FF_ARRAY_ELEMS(channel_counts) can trigger warnings (-Wtautological-constant-out-of-range-compare) when building with the old FDK AAC releases, where it can't be out of range with the enum values used there. CC: libav-stable@libav.org Signed-off-by: Martin Storsjö <martin@martin.st>
2014-11-10libfdk-aacdec: Support building with the latest version of fdk-aacMartin Storsjö
The latest fdk-aac code drop (from android 5.0) changed the channel layout enums (changing the value of existing enum constants), and renamed the option for downmixing. The failsafe comparison between ctype and FF_ARRAY_ELEMS(channel_counts) can trigger warnings (-Wtautological-constant-out-of-range-compare) when building with the old FDK AAC releases, where it can't be out of range with the enum values used there. Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
2014-10-17Merge commit '66e9f839536238945fbfe9d2041b6891cb150e45'Michael Niedermayer
* commit '66e9f839536238945fbfe9d2041b6891cb150e45': libfdk-aacdec: Enable Dynamic Range Control Metadata Support Conflicts: libavcodec/version.h Merged-by: Michael Niedermayer <michaelni@gmx.at>
2014-10-17avcodec/libfdk-aacdec: use av_feeep() to avoid leaving stale pointers in memoryMichael Niedermayer
Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
2014-10-17Merge commit 'b01a2204b5cff7bb920f42fda1bb0103f450fe93'Michael Niedermayer
* commit 'b01a2204b5cff7bb920f42fda1bb0103f450fe93': libfdk-aacdec: Enable Decoder Downmix including Downmix Metadata Support Conflicts: libavcodec/libfdk-aacdec.c libavcodec/version.h Merged-by: Michael Niedermayer <michaelni@gmx.at>
2014-10-17libfdk-aacdec: Enable Dynamic Range Control Metadata SupportOmer Osman
For streams which contain DRC metadata, the FDK decoder is able to control rendering of the decoded output. The rendering parameters are detailed in fdk_aac_dec_options []. The default behavior is left up to the decoder. Signed-off-by: Martin Storsjö <martin@martin.st>
2014-10-17libfdk-aacdec: Enable Decoder Downmix including Downmix Metadata SupportOmer Osman
The FDK decoder is capable of producing mono and stereo downmix from multichannel streams. These streams may contain metadata that control the downmix process. The decoder requires an Ancillary Buffer in order to correctly apply downmix in streams containing downmix Metadata. The decoder does not have an API interface to inform of the presence of Metadata in the stream, and therefore the Ancillary Buffer is always allocated whenever a downmix is requested. When downmixing multichannel streams, the decoder requires the output buffer in aacDecoder_DecodeFrame call to be of fixed size in order to hold the actual number of channels contained in the stream. For example, for a 5.1ch to stereo downmix, the decoder requires that the output buffer is allocated for 6 channels, regardless of the fact that the output is in fact two channels. Due to this requirement, the output buffer is allocated for the maximum output buffer size in case a downmix is requested (and also during decoder init). When a downmix is requested, the buffer used for output during init will also be used for the entire duration the decoder is open. Otherwise, the initial decoder output buffer is freed and the decoder decodes straight into the output AVFrame. Signed-off-by: Martin Storsjö <martin@martin.st>
2014-07-08Merge commit '1e9a93bfca2c2f43a07e01f2ef9fd5cbafe6c22d'Michael Niedermayer
* commit '1e9a93bfca2c2f43a07e01f2ef9fd5cbafe6c22d': libfdk-aacdec: Decode the first AAC frame to reliably identify the bitstream Conflicts: libavcodec/version.h Merged-by: Michael Niedermayer <michaelni@gmx.at>
2014-07-07libfdk-aacdec: Decode the first AAC frame to reliably identify the bitstreamOmer Osman
For implicit signaling cases (as possible for Spectral Band Replication and Parametric Stereo Tools), the decoder must decode the first frame to correctly identify the stream configuration (as called from avformat_find_stream_info). The mechanism for this is built-in and only requires adding CODEC_CAP_CHANNEL_CONF to the libfdk-aacdec AVCodec struct. Signed-off-by: Omer Osman <omer.osman@iis.fraunhofer.de> Signed-off-by: Martin Storsjö <martin@martin.st>
2014-07-05Merge commit 'e0bfe34ea8ccf333ec5b17961fd58eb575e74f8b'Michael Niedermayer
* commit 'e0bfe34ea8ccf333ec5b17961fd58eb575e74f8b': libfdk-aacdec: Reduce the default decoder delay by one frame Conflicts: libavcodec/version.h Merged-by: Michael Niedermayer <michaelni@gmx.at>
2014-07-05libfdk-aacdec: Reduce the default decoder delay by one frameOmer Osman
The default error concealment method if none is set via aacDecoder_SetParam(AAC_CONCEAL_METHOD) is set in CConcealment_InitCommonData within the fdk-aac library and is set to Energy Interpolation. This method requires one frame delay to the output. To reduce the default decoder output delay and avoid missing the last frame in file based decoding, use Noise Substitution as the default concealment method. Signed-off-by: Omer Osman <omer.osman@iis.fraunhofer.de> Signed-off-by: Martin Storsjö <martin@martin.st>
2014-06-06Merge commit '2f7065190ad48744014a02288799d03adfa613e0'Michael Niedermayer
* commit '2f7065190ad48744014a02288799d03adfa613e0': libfdk-aac: Relicense the library wrappers to the ISC license Merged-by: Michael Niedermayer <michaelni@gmx.at>
2014-06-06libfdk-aac: Relicense the library wrappers to the ISC licenseMartin Storsjö
This reduces the number of different licenses used within libav, and is preferrable since it has less ambiguous wordings than the BSD license with respect to the duties of the user of the code. Fraunhofer have now indicated that they're allowed to contribute code under this license as well. Signed-off-by: Martin Storsjö <martin@martin.st>
2014-05-05Merge commit '3828eb8519c1530392ab8820b1aa784602128afc'Michael Niedermayer
* commit '3828eb8519c1530392ab8820b1aa784602128afc': libfdk-aac: Relicense the library wrappers to 2-clause BSD Conflicts: libavcodec/libfdk-aacdec.c libavcodec/libfdk-aacenc.c <Daemon404> michaelni, fyi, for the fdk relicensing, wbs also contact all the ffmpeg-only contributers <Daemon404> so it should be fine to merge. Thanks-to: Martin Storsjö <martin@martin.st> Merged-by: Michael Niedermayer <michaelni@gmx.at>
2014-05-05libfdk-aac: Relicense the library wrappers to 2-clause BSDMartin Storsjö
This should make it possible for Fraunhofer to contribute to these wrappers - they didn't want to contribute to code under LGPL2.1 with the "or any later version" clause (which allowed using the code under the LGPL3 license). Signed-off-by: Martin Storsjö <martin@martin.st>
2013-11-07avcodec/libfdk-aacdec: remove redundant log messagesPaul B Mahol
Signed-off-by: Paul B Mahol <onemda@gmail.com>
2013-08-24Merge commit '84784c297fe6a6e538a7e111dcdbd8b893c2d275'Michael Niedermayer
* commit '84784c297fe6a6e538a7e111dcdbd8b893c2d275': libfdk-aacdec: formatting cosmetics Merged-by: Michael Niedermayer <michaelni@gmx.at>
2013-08-23libfdk-aacdec: formatting cosmeticsDiego Biurrun
2013-08-21Merge commit '4f2b469da5e4ae221718ae479f6af627cfdebb91'Michael Niedermayer
* commit '4f2b469da5e4ae221718ae479f6af627cfdebb91': Add a libfdk-aac decoder Conflicts: configure libavcodec/version.h Merged-by: Michael Niedermayer <michaelni@gmx.at>
2013-08-20Add a libfdk-aac decoderMartin Storsjö
This can be useful for decoding AAC object types that are not supported by the native AAC decoder, e.g. AAC-LD and AAC-ELD.