From d70dde2712bbead523004d8294ff1a0fdeab480b Mon Sep 17 00:00:00 2001 From: Derek Buitenhuis Date: Wed, 23 Jun 2021 17:12:43 +0100 Subject: avcodec/h264_metadata_bsf: Allow zeroing constraint_set4_flag and constraint_set5_flag These bits are reserved in earlier versions of the H.264 spec, and some poor hardware decoders require they are zero. Thus, it is useful to be able to zero these on streams that may have them set. The result is still a valid H.264 bitstream. Signed-off-by: Derek Buitenhuis --- doc/bitstream_filters.texi | 5 +++++ 1 file changed, 5 insertions(+) (limited to 'doc') diff --git a/doc/bitstream_filters.texi b/doc/bitstream_filters.texi index 60e729484d..e3c56f1887 100644 --- a/doc/bitstream_filters.texi +++ b/doc/bitstream_filters.texi @@ -253,6 +253,11 @@ Set whether the stream has fixed framerate - typically this indicates that the framerate is exactly half the tick rate, but the exact meaning is dependent on interlacing and the picture structure (see H.264 section E.2.1 and table E-6). +@item zero_new_constraint_set_flags +Zero constraint_set4_flag and constraint_set5_flag in the SPS. These +bits were reserved in a previous version of the H.264 spec, and thus +some hardware decoders require these to be zero. The result of zeroing +this is still a valid bitstream. @item crop_left @item crop_right -- cgit v1.2.3