- 09 Feb, 2020 1 commit
-
-
Mark Thompson authored
Fixes CID 1452433.
-
- 07 Jul, 2019 3 commits
-
-
Andreas Rheinhardt authored
Signed-off-by:
Andreas Rheinhardt <andreas.rheinhardt@gmail.com>
-
Andreas Rheinhardt authored
This commit changes h265_metadata to (a) use ff_bsf_get_packet_ref instead of ff_bsf_get_packet (thereby avoiding one malloc and free per filtered packet) and (b) to use only one packet structure at all, thereby avoiding a call to av_packet_copy_props. (b) has been made possible by the recent changes to ff_cbs_write_packet. Signed-off-by:
Andreas Rheinhardt <andreas.rheinhardt@gmail.com>
-
Mark Thompson authored
To match the same option in h264_metadata.
-
- 25 Feb, 2019 1 commit
-
-
Andreas Rheinhardt authored
Currently, a fragment's unit array is constantly reallocated during splitting of a packet. This commit changes this: One can keep the units array by distinguishing between the number of allocated and the number of valid units in the units array. The more units a packet is split into, the bigger the benefit. So MPEG-2 benefits the most; for a video coming from an NTSC-DVD (usually 32 units per frame) the average cost of cbs_insert_unit (for a single unit) went down from 6717 decicycles to 450 decicycles (based upon 10 runs with 4194304 runs each); if each packet consists of only one unit, it went down from 2425 to 448; for a H.264 video where most packets contain nine units, it went from 4431 to 450. Signed-off-by:
Andreas Rheinhardt <andreas.rheinhardt@googlemail.com>
-
- 20 Mar, 2018 1 commit
-
-
James Almer authored
Some function calls may fail after the output packet is initialized. Reviewed-by: jkqxz Signed-off-by:
James Almer <jamrial@gmail.com>
-
- 18 Mar, 2018 1 commit
-
-
Jun Zhao authored
Signed-off-by:
Jun Zhao <mypopydev@gmail.com> Signed-off-by:
Mark Thompson <sw@jkqxz.net>
-
- 20 Feb, 2018 2 commits
-
-
Mark Thompson authored
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).
-
Mark Thompson authored
... instead of making callers allocate it themselves. This is more consistent with other APIs in libav.
-
- 12 Nov, 2017 1 commit
-
-
James Almer authored
Reviewed-by:
Michael Niedermayer <michael@niedermayer.cc> Reviewed-by: jkqxz Signed-off-by:
James Almer <jamrial@gmail.com>
-
- 17 Oct, 2017 2 commits
-
-
Mark Thompson authored
This is able to modify some header metadata found in the VPS/SPS/VUI, and can also add/remove AUDs. (cherry picked from commit b31a9eae)
-
Mark Thompson authored
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. (cherry picked from commit 9e93001b) (cherry picked from commit c42b62d1)
-
- 12 Sep, 2017 1 commit
-
-
Mark Thompson authored
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.
-
- 13 Aug, 2017 1 commit
-
-
Mark Thompson authored
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.
-