- 08 Jul, 2019 1 commit
-
-
Andreas Rheinhardt authored
ff_cbs_delete_unit never fails if the index of the unit to delete is valid, as it is with all current callers of the function. So just assert in ff_cbs_delete_unit that the index is valid and change the return value to void in order to remove the callers' checks for whether ff_cbs_delete_unit failed. Signed-off-by:
Andreas Rheinhardt <andreas.rheinhardt@gmail.com>
-
- 07 Jul, 2019 2 commits
-
-
Andreas Rheinhardt authored
When looping over an access unit's units in positive direction and deleting some of them, one needs to make sure that a unit that is at the position of a unit that just got deleted gets checked, too. Signed-off-by:
Andreas Rheinhardt <andreas.rheinhardt@gmail.com>
-
Andreas Rheinhardt authored
This commit changes h264_redundant_pps 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>
-
- 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>
-
- 18 Nov, 2018 1 commit
-
-
Andreas Rheinhardt authored
Now the fragment is uninitialized and the input packet freed in case of errors. Signed-off-by:
Andreas Rheinhardt <andreas.rheinhardt@googlemail.com> Signed-off-by:
Mark Thompson <sw@jkqxz.net>
-
- 10 Nov, 2018 1 commit
-
-
Andreas Rheinhardt authored
The first element of H264RedundantPPSContext is not a pointer to an AVClass as required. Signed-off-by:
Andreas Rheinhardt <andreas.rheinhardt@googlemail.com> Signed-off-by:
Michael Niedermayer <michael@niedermayer.cc>
-
- 17 Aug, 2018 2 commits
-
-
James Almer authored
Signed-off-by:
James Almer <jamrial@gmail.com>
-
James Almer authored
Signed-off-by:
James Almer <jamrial@gmail.com>
-
- 20 Feb, 2018 1 commit
-
-
Mark Thompson authored
... instead of making callers allocate it themselves. This is more consistent with other APIs in libav.
-
- 17 Oct, 2017 1 commit
-
-
Mark Thompson authored
This applies a specific fixup to some Blu-ray streams which contain redundant PPSs modifying irrelevant parameters of the stream which confuse other transformations which require correct extradata. A new single global PPS is created, and all of the redundant PPSs within the stream are removed. (cherry picked from commit e6874bc3)
-
- 13 Aug, 2017 1 commit
-
-
Mark Thompson authored
This applies a specific fixup to some Bluray streams which contain redundant PPSs modifying irrelevant parameters of the stream which confuse other transformations which require correct extradata. A new single global PPS is created, and all of the redundant PPSs within the stream are removed.
-