aboutsummaryrefslogtreecommitdiffstats
path: root/libavformat/iamf_reader.c
Commit message (Collapse)AuthorAgeFilesLines
* all: fix typos found by codespellTimo Rothenpieler2 days1-1/+1
|
* avformat/mov: add an offset to IAMF streamsJames Almer2025-02-071-6/+6
| | | | | | | | Using audio_substream_id for AVStream ids is not ideal give that in containers like mp4, the IAMF structure is opaque to the outside and other streams may share such id values. Signed-off-by: James Almer <jamrial@gmail.com>
* avformat/iamf_reader: Initialize padding and check read in ff_iamf_read_packet()Michael Niedermayer2025-01-211-1/+3
| | | | | | | | Fixes: Use of uninitialized memory Fixes: 377642312/clusterfuzz-testcase-minimized-ffmpeg_dem_IAMF_fuzzer-4554550985424896 Found-by: continuous fuzzing process https://github.com/google/oss-fuzz/tree/master/projects/ffmpeg Signed-off-by: Michael Niedermayer <michael@niedermayer.cc>
* avformat/iamf_parse: fix setting duration for the last subblock in a ↵James Almer2024-12-151-1/+2
| | | | | | | | | parameter definition When subblock durations are constant, the last block may be smaller and the value needs to be calculated. Signed-off-by: James Almer <jamrial@gmail.com>
* avformat/iamf_parse: add checks to parameter definition durationsJames Almer2024-12-151-2/+13
| | | | | | | Section 3.6.1 of the IAMF spec states "When constant_subblock_duration is equal to 0, the summation of all subblock_duration in this parameter block SHALL be equal to duration.". Signed-off-by: James Almer <jamrial@gmail.com>
* avformat/iamf: use aligned intreadwrite macros where possibleJames Almer2024-08-071-2/+2
| | | | Signed-off-by: James Almer <jamrial@gmail.com>
* avformat/iamf_reader: split "if ((ret = ...) < 0)" lineJames Almer2024-05-051-1/+2
| | | | | | Cosmetic change. Signed-off-by: James Almer <jamrial@gmail.com>
* avformat/iamf_reader: Check len before summingMichael Niedermayer2024-04-011-2/+2
| | | | | | | | | Fixes: integer overflow Fixes: 67275/clusterfuzz-testcase-minimized-ffmpeg_dem_IAMF_fuzzer-5438920751906816 Fixes: 67688/clusterfuzz-testcase-minimized-ffmpeg_dem_IAMF_fuzzer-5970342318243840 Found-by: continuous fuzzing process https://github.com/google/oss-fuzz/tree/master/projects/ffmpeg Signed-off-by: Michael Niedermayer <michael@niedermayer.cc>
* avutil/common: Don't auto-include mem.hAndreas Rheinhardt2024-03-311-0/+1
| | | | | | | | | | | There are lots of files that don't need it: The number of object files that actually need it went down from 2011 to 884 here. Keep it for external users in order to not cause breakages. Also improve the other headers a bit while just at it. Signed-off-by: Andreas Rheinhardt <andreas.rheinhardt@outlook.com>
* avformat/iamf_reader: propagate avio_skip() error valuesJames Almer2024-03-211-4/+2
| | | | | | | | Fixes: null pointer derference Fixes: 67007/clusterfuzz-testcase-minimized-ffmpeg_dem_IAMF_fuzzer-6522819204677632 Tested-by: Michael Niedermayer <michael@niedermayer.cc> Signed-off-by: James Almer <jamrial@gmail.com>
* avformat/iamf: remove duplicated functionJames Almer2024-02-291-17/+1
| | | | Signed-off-by: James Almer <jamrial@gmail.com>
* avformat/iamfdec: further split into shareable modulesJames Almer2024-02-191-0/+356
Signed-off-by: James Almer <jamrial@gmail.com>