summaryrefslogtreecommitdiff
path: root/libavformat/av1dec.c
Commit message (Collapse)AuthorAge
* avformat: move AVStream.{parser,need_parsing} to AVStreamInternalJames Almer2021-05-07
| | | | | | | Those are private fields, no reason to have them exposed in a public header. Signed-off-by: James Almer <jamrial@gmail.com>
* avformat: Constify all muxer/demuxersAndreas Rheinhardt2021-04-27
| | | | | | | This is possible now that the next-API is gone. Signed-off-by: Andreas Rheinhardt <andreas.rheinhardt@outlook.com> Signed-off-by: James Almer <jamrial@gmail.com>
* avformat/av1dec: check size before addition in probingMichael Niedermayer2020-12-06
| | | | | | | | Fixes: signed integer overflow: 175 + 2147483571 cannot be represented in type 'int' Fixes: 26833/clusterfuzz-testcase-minimized-ffmpeg_dem_IMAGE2_fuzzer-5969501214212096 Found-by: continuous fuzzing process https://github.com/google/oss-fuzz/tree/master/projects/ffmpeg Signed-off-by: Michael Niedermayer <michael@niedermayer.cc>
* avformat/av1dec: Fix padding in obu_get_packet()Michael Niedermayer2020-10-20
| | | | | | | | Fixes: stack buffer overflow (read) Fixes: 26369/clusterfuzz-testcase-minimized-ffmpeg_dem_VIVIDAS_fuzzer-5721057325219840 Found-by: continuous fuzzing process https://github.com/google/oss-fuzz/tree/master/projects/ffmpeg Signed-off-by: Michael Niedermayer <michael@niedermayer.cc>
* avformat/av1dec: don't update temporal_unit_size after it's no longer usedJames Almer2020-08-15
| | | | Signed-off-by: James Almer <jamrial@gmail.com>
* avformat/av1dec: inline obu_read_data() and obu_prefetch() into obu_get_packet()James Almer2020-08-15
| | | | | | | They don't really help making the demuxer more readable. Reviewed-by: Guangxin Xu <oddstone@gmail.com> Signed-off-by: James Almer <jamrial@gmail.com>
* avformat/av1dec: fix return value on some code pathsJames Almer2020-08-14
| | | | | | | | | | | If avio_read() returns a value of bytes read that's lower than the expected, return an error instead. And when there are zero bytes in the prefetch buffer, return 0 in order for the frame merge bsf to drain all potentially buffered packets. Missed by mistake when amending and committing 9a7bdb6d71. Signed-off-by: James Almer <jamrial@gmail.com>
* avformat/av1dec: add missing preprocessor wrappers to annexb and obu demuxersJames Almer2020-08-14
| | | | | | Ensure the modules are compiled only if enabled. Signed-off-by: James Almer <jamrial@gmail.com>
* avformat/av1dec: add low-overhead bitstream formatXu Guangxin2020-08-14
| | | | | | It's defined in Section 5.2, used by netflix. Signed-off-by: James Almer <jamrial@gmail.com>
* avformat/av1dec: simplify annexb_probe()James Almer2019-11-16
| | | | Signed-off-by: James Almer <jamrial@gmail.com>
* avformat/av1dec: Redo flushing of bsfAndreas Rheinhardt2019-11-14
| | | | | | | | | | | | | | The current approach has two different calls to av_bsf_send_packet(): A normal one, sending a packet; and an extraordinary one just for flushing. These can be unified into one by making use of the newly documented fact that av_bsf_send_packet() allows to signal flushing via empty packets (i.e. packets without data and side-data). This also fixes CID 1455685 which resulted from the fact that the call for flushing was not checked given that it couldn't fail. Signed-off-by: Andreas Rheinhardt <andreas.rheinhardt@gmail.com> Signed-off-by: James Almer <jamrial@gmail.com>
* avformat: add an AV1 Annex B demuxerJames Almer2019-11-12
Signed-off-by: James Almer <jamrial@gmail.com>