cbs_h264, h264_metadata: Deleting SEI messages never fails
authorAndreas Rheinhardt <andreas.rheinhardt@gmail.com>
Sun, 7 Jul 2019 23:14:02 +0000 (01:14 +0200)
committerMark Thompson <sw@jkqxz.net>
Mon, 8 Jul 2019 21:59:41 +0000 (22:59 +0100)
commitd9418aba66e7f9d32c11d0ee1b8cddaf1e68e1b6
tree2b9b7eeeec1ccfc05c86ff5c91fc1aacb12f1f5b
parent730e5be3aa1118a63132122dd06aa4f3311af07d
cbs_h264, h264_metadata: Deleting SEI messages never fails

Given the recent changes to ff_cbs_delete_unit, it is no longer sensible
to use a return value for ff_cbs_h264_delete_sei_message; instead, use
asserts to ensure that the required conditions are met and remove the
callers' checks for the return value. Also, document said conditions.

An assert that is essentially equivalent to the one used in
ff_cbs_delete_unit has been removed, too.

Signed-off-by: Andreas Rheinhardt <andreas.rheinhardt@gmail.com>
libavcodec/cbs_h264.h
libavcodec/cbs_h2645.c
libavcodec/h264_metadata_bsf.c