summaryrefslogtreecommitdiff
path: root/libavcodec/audiotoolboxdec.c
Commit message (Collapse)AuthorAge
* avcodec/audiotoolboxdec: Fix usage of init_get_bits() and use init_get_bits8()Limin Wang2021-10-13
| | | | Signed-off-by: Limin Wang <lance.lmwang@gmail.com>
* avcodec/avcodec: Stop including channel_layout.h in avcodec.hAndreas Rheinhardt2021-07-22
| | | | | | Also include channel_layout.h directly wherever used. Signed-off-by: Andreas Rheinhardt <andreas.rheinhardt@outlook.com>
* avcodec: Constify AVCodecsAndreas Rheinhardt2021-04-27
| | | | | | | | | | Given that the AVCodec.next pointer has now been removed, most of the AVCodecs are not modified at all any more and can therefore be made const (as this patch does); the only exceptions are the very few codecs for external libraries that have a init_static_data callback. Signed-off-by: Andreas Rheinhardt <andreas.rheinhardt@gmail.com> Signed-off-by: James Almer <jamrial@gmail.com>
* avutil/buffer: Switch AVBuffer API to size_tAndreas Rheinhardt2021-04-27
| | | | | | | Announced in 14040a1d913794d9a3fd6406a6d8c2f0e37e0062. Signed-off-by: Andreas Rheinhardt <andreas.rheinhardt@outlook.com> Signed-off-by: James Almer <jamrial@gmail.com>
* avutil/frame: Remove deprecated AVFrame.pkt_pts fieldAndreas Rheinhardt2021-04-27
| | | | | | | Deprecated in 32c8359093d1ff4f45ed19518b449b3ac3769d27. Signed-off-by: Andreas Rheinhardt <andreas.rheinhardt@gmail.com> Signed-off-by: James Almer <jamrial@gmail.com>
* avcodec: use the buffer_size_t typedef where requiredJames Almer2021-03-10
| | | | Signed-off-by: James Almer <jamrial@gmail.com>
* avcodec: Constify some AVPacketsAndreas Rheinhardt2021-03-09
| | | | | Reviewed-by: James Almer <jamrial@gmail.com> Signed-off-by: Andreas Rheinhardt <andreas.rheinhardt@gmail.com>
* All: update names in copyright headersrcombs2021-01-20
|
* avcodec: set AV_CODEC_CAP_CHANNEL_CONF on decoders which set their own channelsHendrik Leppkes2020-12-10
| | | | | | | | | | | | The decoders in this set either have a fixed channel count, or read it from the bitstream, and thus do not require the channel count as external information. Fixes various regressions since 81503ac58a763a36b1f57264013b1e76acb62b68, which requires a valid channel count for decoders which do not set this capability. Signed-off-by: Hendrik Leppkes <h.leppkes@gmail.com>
* avcodec, avformat: Remove unnecessary initializations of side data sizeAndreas Rheinhardt2020-06-22
| | | | | Reviewed-by: Anton Khirnov <anton@khirnov.net> Signed-off-by: Andreas Rheinhardt <andreas.rheinhardt@gmail.com>
* avcodec: add metadata to identify wrappers and hardware decoderswm42017-12-14
| | | | | | | | | | | | | | | | | | | | | Explicitly identify decoder/encoder wrappers with a common name. This saves API users from guessing by the name suffix. For example, they don't have to guess that "h264_qsv" is the h264 QSV implementation, and instead they can just check the AVCodec .codec and .wrapper_name fields. Explicitly mark AVCodec entries that are hardware decoders or most likely hardware decoders with new AV_CODEC_CAPs. The purpose is allowing API users listing hardware decoders in a more generic way. The proposed AVCodecHWConfig does not provide this information fully, because it's concerned with decoder configuration, not information about the fact whether the hardware is used or not. AV_CODEC_CAP_HYBRID exists specifically for QSV, which can have software implementations in case the hardware is not capable. Based on a patch by Philip Langdale <philipl@overt.org>. Merges Libav commit 47687a2f8aca3f65b6fdd117b1cb66a7409a7fd1.
* avcodec/audiotoolboxdec: fix ac3_parser header includeJames Almer2017-10-27
|
* Merge commit '50a1c66cf6ab7eb683daaa9e2da3869fa3a54609'James Almer2017-10-27
| | | | | | | | | | | * commit '50a1c66cf6ab7eb683daaa9e2da3869fa3a54609': ac3_parser: add a public function for parsing the data required by the demuxer avpriv_ac3_parse_header() is left in place but without the GetBitContext parameter, as the mov muxer requires a lot more fields than just bitstream_id and frame_size from the AC3HeaderInfo struct. Merged-by: James Almer <jamrial@gmail.com>
* avcodec/audiotoolboxdec: use av_freep()James Almer2017-09-06
| | | | This prevents leaving dangling pointers.
* avcodec/audiotoolboxdec: switch to the new generic filtering mechanismJames Almer2017-09-06
| | | | | Tested-by: ubitux Signed-off-by: James Almer <jamrial@gmail.com>
* avcodec/audiotoolboxdec: add FF_CODEC_CAP_INIT_CLEANUP to the decoder ↵James Almer2017-09-06
| | | | | | | | | capabilities Extradata may be allocated and the AudioConverterRef may be created during init(), which in case of a failure would not be freed as close() isn't called afterwards. Signed-off-by: James Almer <jamrial@gmail.com>
* avcodec/audiotoolboxdec: always use a copy of the AVCodecContext extradataJames Almer2017-09-06
| | | | | | Fixes memleaks introduced by 954e2b3d34b7c2d82871254f07e2f8a39bc451cb Signed-off-by: James Almer <jamrial@gmail.com>
* avcodec/audiotoolboxdec: check packet side data for AAC extradata updatesJames Almer2017-05-25
| | | | | Tested-by: rcombs Signed-off-by: James Almer <jamrial@gmail.com>
* lavc/audiotoolboxdec: fix OSX SDK detectionDmitry Kalinkin2016-11-14
| | | | | | | | | | | __MAC_10_11 can be present in updated revision of an older SDK so it can't reliably detect availability of kAudioFormatEnhancedAC3 constant. Fixes: b4daa2c40f ('lavc/audiotoolboxdec: add eac3 decoder') Cc: Rodger Combs <rodger.combs@gmail.com> Signed-off-by: Dmitry Kalinkin <dmitry.kalinkin@gmail.com> Previous version reviewed by: Rodger Combs <rodger.combs@gmail.com> Signed-off-by: Michael Niedermayer <michael@niedermayer.cc>
* Merge commit '32c8359093d1ff4f45ed19518b449b3ac3769d27'Hendrik Leppkes2016-10-07
| | | | | | | * commit '32c8359093d1ff4f45ed19518b449b3ac3769d27': lavc: export the timestamps when decoding in AVFrame.pts Merged-by: Hendrik Leppkes <h.leppkes@gmail.com>
* lavc/audiotoolboxdec: Forward extradata for QDMC and QDM2.Carl Eugen Hoyos2016-06-20
| | | | Fixes audiotoolbox decoding of QDMC and QDM2.
* lavc/audiotoolboxdec: move to new BSF APIRodger Combs2016-04-26
|
* lavc/audiotoolboxdec: fix memory leakRodger Combs2016-04-26
|
* lavf/audiotoolboxdec: only provide block alignment for ILBCRodger Combs2016-04-13
| | | | Fixes decode errors for some AVI files
* lavf/audiotoolboxdec: only send extradata for formats that use itRodger Combs2016-04-13
| | | | Fixes initialization errors for some AVI files
* lavc/audiotoolboxdec: reindentRodger Combs2016-04-13
|
* lavc/audiotoolboxdec: avoid relying on consumer-provided params when possibleRodger Combs2016-04-13
|
* lavc/audiotoolboxdec: add eac3 decoderRodger Combs2016-04-02
| | | | | | | | This is added in 10.11, so we add a #define when building against older SDKs. The decoder actually supports 7.1-channel eac3, but since the parser only reports 6 channels, we end up decoding the 5.1 downmix (same as the internal decoder) for now.
* lavc/audiotoolboxdec: fix a number of config and timestamp issuesRodger Combs2016-04-02
| | | | | | | | - ADTS-formatted AAC didn't work - Channel layouts were never exported - Channel mappings were incorrect beyond stereo - Channel counts weren't updated after packets were decoded - Timestamps were exported incorrectly
* lavc/audiotoolboxdec: support ADTS AAC inputRodger Combs2016-04-02
|
* lavc: add AudioToolbox decodersRodger Combs2016-03-22
Part of trac #4828