summaryrefslogtreecommitdiff
path: root/libavcodec/vp9_superframe_split_bsf.c
Commit message (Collapse)AuthorAge
* avcodec/vp9_superframe_split_bsf: Don't read inexistent dataAndreas Rheinhardt2022-03-31
| | | | | | | | | Fixes: Out of array read Fixes: 45137/clusterfuzz-testcase-minimized-ffmpeg_BSF_VP9_SUPERFRAME_SPLIT_fuzzer-4984270639202304 Found-by: continuous fuzzing process https://github.com/google/oss-fuzz/tree/master/projects/ffmpeg Signed-off-by: Andreas Rheinhardt <andreas.rheinhardt@outlook.com>
* avcodec/vp9_superframe_split_bsf: Discard invalid zero-sized framesAndreas Rheinhardt2022-03-31
| | | | | | | | They are invalid in VP9. If any of the frames inside a superframe had a size of zero, the code would either read into the next frame or into the superframe index; so check for the length to stop this. Signed-off-by: Andreas Rheinhardt <andreas.rheinhardt@outlook.com>
* avcodec/bsf: Add FFBitStreamFilter, hide internals of BSFsAndreas Rheinhardt2022-03-23
| | | | | | | | | | This patch is analogous to 20f972701806be20a77f808db332d9489343bb78: It hides the internal part of AVBitStreamFilter by adding a new internal structure FFBitStreamFilter (declared in bsf_internal.h) that has an AVBitStreamFilter as its first member; the internal part of AVBitStreamFilter is moved to this new structure. Signed-off-by: Andreas Rheinhardt <andreas.rheinhardt@outlook.com>
* avcodec.h: split bitstream filters API into its own headerAnton Khirnov2020-05-22
|
* lavc: rename bsf.h to bsf_internal.hAnton Khirnov2020-05-22
| | | | This will allow adding a public header named bsf.h
* avcodec/vp9_superframe_split_bsf: implement a AVBSFContext.flush() callbackJames Almer2018-08-16
| | | | Signed-off-by: James Almer <jamrial@gmail.com>
* avcodec/vp9_superframe_split: fix memory leak in case of output packet ↵James Almer2018-03-21
| | | | | | | | creation failure Some function calls may fail after the output packet is initialized. Signed-off-by: James Almer <jamrial@gmail.com>
* avcodec/vp9_superframe_split: move the reference in the bsf internal bufferJames Almer2018-03-19
| | | | | | There's no need to allocate a new packet for it. Signed-off-by: James Almer <jamrial@gmail.com>
* avcodec/vp9_superframe_split_bsf: Fix integer overflow in ↵Michael Niedermayer2017-12-10
| | | | | | | | | | frame_size/total_size checks Fixes: signed integer overflow: -1698586465 + -551542752 cannot be represented in type 'int' Fixes: 4490/clusterfuzz-testcase-minimized-5210014592532480 Found-by: continuous fuzzing process https://github.com/google/oss-fuzz/tree/master/projects/ffmpeg Signed-off-by: Michael Niedermayer <michael@niedermayer.cc>
* Merge commit '03a80925effc2698d21dc0b00290eecf42dd9e68'James Almer2017-04-22
| | | | | | | * commit '03a80925effc2698d21dc0b00290eecf42dd9e68': lavc: add a bitstream filter for splitting VP9 superframes Merged-by: James Almer <jamrial@gmail.com>
* lavc: add a bitstream filter for splitting VP9 superframesAnton Khirnov2016-12-14
Partially based on code by Ronald S. Bultje <rsbultje@gmail.com>.