]> git.sesse.net Git - ffmpeg/commit
cbs: ff_cbs_delete_unit: Replace return value with assert
authorAndreas Rheinhardt <andreas.rheinhardt@gmail.com>
Sun, 7 Jul 2019 23:14:01 +0000 (01:14 +0200)
committerMark Thompson <sw@jkqxz.net>
Mon, 8 Jul 2019 21:59:41 +0000 (22:59 +0100)
commit730e5be3aa1118a63132122dd06aa4f3311af07d
tree21fee671a0a2538df4ecba1bbf2e48b5c036b23b
parent70a4f46e48da8bc8a547e490f67dde5165227dd8
cbs: ff_cbs_delete_unit: Replace return value with assert

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>
libavcodec/av1_metadata_bsf.c
libavcodec/cbs.c
libavcodec/cbs.h
libavcodec/cbs_h2645.c
libavcodec/h264_metadata_bsf.c
libavcodec/h264_redundant_pps_bsf.c