on an android device with MTK8695+MT7668, using avcodec/mediacodec with OMX.MTK.VIDEO.DECODER.AVC
observed that using either chomp_bsf or h264_metadata_bsf makes the sample stall out the hardware decoder due to trailing zeros being removed from the end of NAL_SLICE and NAL_IDR_SLICE
with the patch above, cbs keeps trailing zeros and fixes playback on the device when using h264_metadata_bsf (and possibly also when using filter_units_bsf).