[FFmpeg-devel] [PATCH] avcodec/cbs_av1: change the assert in trailing_bits to accept zero bits when reading
vittorio.giovara at gmail.com
Wed Feb 13 23:38:20 EET 2019
On Sun, Feb 10, 2019 at 3:12 PM James Almer <jamrial at gmail.com> wrote:
> If nb_bits is zero when reading an OBU, then it's not a bug in CBS but an
> invalid bitstream, and we should abort gracefully instead.
> Signed-off-by: James Almer <jamrial at gmail.com>
> rav1e is currently encoding invalid Metadata OBUs without trailing bits,
> are triggering the assert when parsed by CBS. This change makes sure to
> report the bitstream as invalid and gracefully return with an error code
> instead of crashing.
In case anyone is interested, this got fixed tonight, rav1e can produce
conformant bitstreams when encoding metadata now.
More information about the ffmpeg-devel