summaryrefslogtreecommitdiffstats
path: root/libavcodec/h264_metadata_bsf.c
Commit message (Collapse)AuthorAgeFilesLines
* h264_metadata: Add option to delete filler dataMark Thompson2018-02-201-0/+43
| | | | | Deletes both filler NAL units and filler SEI messages. (Annex B zero_bytes between NAL units are already discarded by the read/write process.)
* h264_metadata: Always add the SEI user data to the first access unitMark Thompson2018-02-201-2/+6
| | | | | This should be added even if the first access unit does not contain parameter sets.
* h264_metadata: Use common SEI addition functionMark Thompson2018-02-201-53/+19
|
* cbs: Refcount all the things!Mark Thompson2018-02-201-3/+3
| | | | | | | | This makes it easier for users of the CBS API to get alloc/free right - all subelements use the buffer API so that it's clear how to free them. It also allows eliding some redundant copies: the packet -> fragment copy disappears after this change if the input packet is refcounted, and more codec-specific cases are now possible (but not included in this patch).
* cbs: Allocate the context inside the init functionMark Thompson2018-02-201-10/+10
| | | | | ... instead of making callers allocate it themselves. This is more consistent with other APIs in libav.
* h264_metadata: Fix clearing SEI payload in error caseMark Thompson2017-11-121-1/+1
|
* h264_metadata: Fix double-freeMark Thompson2017-09-121-1/+9
| | | | | | Whether the udu string should be freed depends on whether the SEI it gets added to was created internally by cbs or externally by the bsf. The current code frees it twice in the former case.
* lavc: Add h264_metadata bitstream filterMark Thompson2017-08-131-0/+512
This is able to modify some header metadata found in the SPS/VUI, and can also add/remove AUDs and insert user data in SEI NAL units.
OpenPOWER on IntegriCloud