summaryrefslogtreecommitdiff
path: root/libavcodec/extract_extradata_bsf.c
Commit message (Collapse)AuthorAge
* 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/internal.h: Move avpriv_find_start_code() to startcode.hAndreas Rheinhardt2022-02-08
| | | | | | | | This is by definition the appropriate place for it. Remove all the now unnecessary libavcodec/internal.h inclusions; also remove other unnecessary headers from the affected files. Signed-off-by: Andreas Rheinhardt <andreas.rheinhardt@outlook.com>
* avcodec/extract_extradata_bsf: add support for AVS3Limin Wang2021-10-19
| | | | Signed-off-by: Limin Wang <lance.lmwang@gmail.com>
* avcodec/extract_extradata: Reindent after the last commitAndreas Rheinhardt2020-09-11
| | | | Signed-off-by: Andreas Rheinhardt <andreas.rheinhardt@gmail.com>
* avcodec/extract_extradata: Remove always-true checkAndreas Rheinhardt2020-09-11
| | | | | | | | If a sequence header has already been found, it is certain that next startcode (being disjoint from the sequence header startcode) can begin at index four at the earliest. Signed-off-by: Andreas Rheinhardt <andreas.rheinhardt@gmail.com>
* avcodec/extract_extradata: Consolidate zeroing extradata paddingAndreas Rheinhardt2020-09-09
| | | | | Reviewed-by: James Almer <jamrial@gmail.com> Signed-off-by: Andreas Rheinhardt <andreas.rheinhardt@gmail.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
* lavc/extract_extradata: Use bytestream apiAndriy Gelman2019-11-30
| | | | | Signed-off-by: Andriy Gelman <andriy.gelman@gmail.com> Signed-off-by: James Almer <jamrial@gmail.com>
* avcodec/extract_extradata_bsf: Don't unref uninitialized buffersAndreas Rheinhardt2019-11-30
| | | | | | | | This happens if allocating extradata fails and s->remove is unset. Reviewed-by: Paul B Mahol <onemda@gmail.com> Signed-off-by: Andreas Rheinhardt <andreas.rheinhardt@gmail.com> Signed-off-by: James Almer <jamrial@gmail.com>
* avcodec/extract_extradata_bsf: fix typo in commentsleozhang2019-11-06
| | | | | | Signed-off-by: leozhang <leozhang@qiyi.com> Reviewed-by: Gyan <ffmpeg@gyani.pro> Signed-off-by: Michael Niedermayer <michael@niedermayer.cc>
* h2645_parse: Make ff_h2645_packet_split reference-compatibleAndreas Rheinhardt2019-01-23
| | | | | | | This is in preparation for a patch for cbs_h2645. Now the packet's rbsp_buffer can be owned by an AVBuffer. Signed-off-by: Andreas Rheinhardt <andreas.rheinhardt@googlemail.com>
* lavc/extract_extradata_bsf.c: add AVS2hwren2018-08-23
| | | | | | Signed-off-by: hwren <hwrenx@126.com> Reviewed-by: James Almer <jamrial@gmail.com> Signed-off-by: Michael Niedermayer <michael@niedermayer.cc>
* avcodec/extract_extradata_bsf: make sure a Sequence Header was found for av1James Almer2018-07-20
| | | | | | | A packet may have Metadata OBUs but no Sequence Header OBU, which is useless as extradata. Signed-off-by: James Almer <jamrial@gmail.com>
* avcodec/extract_extradata: add support for AV1James Almer2018-07-20
| | | | Signed-off-by: James Almer <jamrial@gmail.com>
* avcodec/extract_extradata: don't uninitialize the H2645Packet on every ↵James Almer2018-03-22
| | | | | | | | | | processed packet Based on hevc_parser code. This prevents repeated unnecessary allocations and frees on every packet processed by the bsf. Reviewed-by: Jun Zhao <mypopydev@gmail.com> Signed-off-by: James Almer <jamrial@gmail.com>
* lavc/extract_extradata_bsf: support dump options.Jun Zhao2018-03-17
| | | | | | | support dump bit stream filter options Signed-off-by: Jun Zhao <mypopydev@gmail.com> Signed-off-by: James Almer <jamrial@gmail.com>
* avcodec/extract_extradata: move the reference in the bsf internal bufferJames Almer2018-03-11
| | | | | | | There's no need to allocate a new packet for it. Reviewed-by: Mark Thompson <sw@jkqxz.net> Signed-off-by: James Almer <jamrial@gmail.com>
* avcodec/extract_extradata: don't allocate more space than needed when ↵James Almer2018-03-10
| | | | | | removing NALUs in h264/hevc Signed-off-by: James Almer <jamrial@gmail.com>
* avcodec/extract_extradata: zero initalize the padding bytes in all allocated ↵James Almer2018-03-09
| | | | | | | buffers Reviewed-by: Derek Buitenhuis <derek.buitenhuis@gmail.com> Signed-off-by: James Almer <jamrial@gmail.com>
* avcodec/extract_extradata_bsf: Fix leak discovered via fuzzingNikolas Bowe2017-12-06
| | | | Signed-off-by: Michael Niedermayer <michael@niedermayer.cc>
* avcodec/extract_extradata: return an error when buffer allocation failsJames Almer2017-09-13
| | | | | | | ret is 0 by default. Reviewed-by: Mark Thompson <sw@jkqxz.net> Signed-off-by: James Almer <jamrial@gmail.com>
* avcodec/extract_extradata_bsf: make sure all parameter set NAL units were ↵James Almer2017-04-01
| | | | | | found for h264/hevc Signed-off-by: James Almer <jamrial@gmail.com>
* avcodec/extract_extradata_bsf: add missing break statement to ↵James Almer2017-03-28
| | | | extract_extradata_vc1
* avcodec/extract_extradata_bsf: use the parsing code from mpeg4video_split()James Almer2017-03-25
| | | | | | | It's a simplifaction of the same code, originally commited as 3b5ad8fbf77. Reviewed-by: Michael Niedermayer <michael@niedermayer.cc> Signed-off-by: James Almer <jamrial@gmail.com>
* avcodec/extract_extradata_bsf: use the parsing code from vc1_split()James Almer2017-03-25
| | | | | | | It's a simplifaction of the same code, originally commited as b4b9a64bdb6. Reviewed-by: Michael Niedermayer <michael@niedermayer.cc> Signed-off-by: James Almer <jamrial@gmail.com>
* avcodec/extract_extradata_bsf: use the parsing code from mpegvideo_split()James Almer2017-03-25
| | | | | | | | | Changes to the parsing code originally committed to mpegvideo_parser.c in 73fb23dc5a5. Required by some samples, like PVA_test-partial.pva Reviewed-by: Michael Niedermayer <michael@niedermayer.cc> Signed-off-by: James Almer <jamrial@gmail.com>
* Merge commit '89b35a139e838deeb32ec20d8d034c81014401d0'James Almer2017-03-23
| | | | | | | * commit '89b35a139e838deeb32ec20d8d034c81014401d0': lavc: add a bitstream filter for extracting extradata from packets Merged-by: James Almer <jamrial@gmail.com>
* lavc: add a bitstream filter for extracting extradata from packetsAnton Khirnov2016-10-16
This is intended as a replacement for the 'split' function exported by some parsers.