]> git.sesse.net Git - ffmpeg/commit
avcodec/cbs: allow cbs_read_fragment_content() to skip decomposition of units
authorJames Almer <jamrial@gmail.com>
Sun, 15 Nov 2020 21:55:39 +0000 (18:55 -0300)
committerJames Almer <jamrial@gmail.com>
Mon, 4 Jan 2021 19:28:29 +0000 (16:28 -0300)
commit3b8400c221983c9b1c894532d275af03144f8834
tree2410a15a3c2f8b6b6cef1d2f51222ff576c0386b
parent9caf132462de6fe9b68644703c953c899c4e5bb8
avcodec/cbs: allow cbs_read_fragment_content() to skip decomposition of units

The caller may not need all units in a fragment in reading only scenarios.
They could in fact alter global state stored in the private CodedBitstreamType
fields in an undesirable way.
With this change, unit decomposition can be skipped based on parsed values
within the unit.

Signed-off-by: James Almer <jamrial@gmail.com>
libavcodec/cbs.c