aboutsummaryrefslogtreecommitdiffstats
path: root/libavcodec/tak.c
Commit message (Collapse)AuthorAgeFilesLines
* avcodec/tak: Use void* instead of AVCodecContext* for logcontextAndreas Rheinhardt2023-08-051-2/+2
| | | | | | | Avoids implicit inclusions of avcodec.h in lavf/takdec.c and lavc/tak.c. Signed-off-by: Andreas Rheinhardt <andreas.rheinhardt@outlook.com>
* avcodec/tak: Check remaining bits in ff_tak_decode_frame_header()Michael Niedermayer2023-05-061-0/+3
| | | | | | | | Fixes: out of array access Fixes: 45982/clusterfuzz-testcase-minimized-ffmpeg_AV_CODEC_ID_TAK_fuzzer-6682195323650048 Found-by: continuous fuzzing process https://github.com/google/oss-fuzz/tree/master/projects/ffmpeg Signed-off-by: Michael Niedermayer <michael@niedermayer.cc>
* lavc/tak: do not store invalid values in stream infoAnton Khirnov2023-05-051-7/+13
| | | | | | | | | | When tak_get_nb_samples() fails, it will currently write AVERROR_INVALIDDATA as TAKStreamInfo.frame_samples. The parser will then use this negative value as a frame duration, which leads to various breakage. Avoid this by returning the error code from tak_parse_streaminfo() directly; never store negative values in the parsed header.
* lavc/tak: make ff_tak_parse_streaminfo staticAnton Khirnov2023-05-051-3/+3
| | | | It is not used outside of tak.c
* avcodec/tak*: use cached bitstream reader on !x86_32Paul B Mahol2022-09-161-0/+1
| | | | Increases single thread decoding speed in one example from 85x to 90x
* avcodec/avcodec: Stop including channel_layout.h in avcodec.hAndreas Rheinhardt2021-07-221-0/+1
| | | | | | Also include channel_layout.h directly wherever used. Signed-off-by: Andreas Rheinhardt <andreas.rheinhardt@outlook.com>
* avcodec/tak: remove GetBitContext usage from avpriv_tak_parse_streaminfo()James Almer2017-10-261-2/+15
| | | | | | | This prevents potential ABI issues with GetBitContext. Reviewed-by: Paul B Mahol <onemda@gmail.com> Signed-off-by: James Almer <jamrial@gmail.com>
* Merge commit 'b668662939de3a02454cfc9ba3e6d10b87527a40'Clément Bœsch2016-06-291-0/+2
|\ | | | | | | | | | | | | | | | | | | * commit 'b668662939de3a02454cfc9ba3e6d10b87527a40': get_bits: Move BITSTREAM_READER_LE definition before all relevant #includes The merge commit also includes changes for libavcodec/interplayacm.c and libavcodec/truemotion2rt.c Merged-by: Clément Bœsch <clement@stupeflix.com>
| * get_bits: Move BITSTREAM_READER_LE definition before all relevant #includesDiego Biurrun2016-06-071-0/+2
| | | | | | | | | | | | | | This avoids the danger that get_bits.h might get indirectly #included before BITSTREAM_READER_LE is defined. Also sort headers into canonical order where appropriate.
* | tak: use crc table from lavuPaul B Mahol2013-07-101-17/+1
| | | | | | | | Signed-off-by: Paul B Mahol <onemda@gmail.com>
* | tak: simplify ff_tak_check_crc()Paul B Mahol2013-06-041-2/+1
| | | | | | | | Signed-off-by: Paul B Mahol <onemda@gmail.com>
* | tak: reduce difference with qatarPaul B Mahol2012-12-091-16/+14
| | | | | | | | | | | | | | Mostly cosmetics changes, but also makes decoding little faster here. Signed-off-by: Paul B Mahol <onemda@gmail.com>
* | Merge commit '57231e4d5b467833fb289439cd35a92513bb55c1'Michael Niedermayer2012-12-081-2/+2
|\| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | * commit '57231e4d5b467833fb289439cd35a92513bb55c1': tak: demuxer, parser, and decoder Not merged as requested by Author and Maintainer of tak in FFmpeg. I just merged a few typo fixes and minor cosmetic improvments. Conflicts: Changelog libavcodec/Makefile libavcodec/allcodecs.c libavcodec/avcodec.h libavcodec/tak.c libavcodec/tak.h libavcodec/tak_parser.c libavcodec/takdec.c libavcodec/version.h libavformat/takdec.c libavformat/version.h Merged-by: Michael Niedermayer <michaelni@gmx.at>
| * tak: demuxer, parser, and decoderPaul B Mahol2012-12-071-0/+150
| | | | | Signed-off-by: Paul B Mahol <onemda@gmail.com> Signed-off-by: Justin Ruggles <justin.ruggles@gmail.com>
* get_bits: rename get_bits_longlong to get_bits64Michael Niedermayer2012-12-081-1/+1
| | | | Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
* TAK demuxer, decoder and parserPaul B Mahol2012-10-081-0/+177
Signed-off-by: Paul B Mahol <onemda@gmail.com>