libavcodec/cbs_h264_syntax_template.c:810: error: Integer Overflow L2
  ([1, +oo] - [1, 2]):unsigned32 by call to `cbs_h264_read_sei_payload`.

libavcodec/cbs_h264_syntax_template.c:777:1: Parameter `current->payload[*].payload_size`
775. }
776. 
777. static int FUNC(sei)(CodedBitstreamContext *ctx, RWContext *rw,
     ^
778.                      H264RawSEI *current)
779. {

libavcodec/cbs_h264_syntax_template.c:810:9: Call
808.         current->payload[k].payload_size = payload_size;
809. 
810.         CHECK(FUNC(sei_payload)(ctx, rw, &current->payload[k]));
             ^
811. 
812.         if (!cbs_h2645_read_more_rbsp_data(rw))

libavcodec/cbs_h264_syntax_template.c:701:1: Parameter `current->payload_size`
  699. }
  700. 
  701. static int FUNC(sei_payload)(CodedBitstreamContext *ctx, RWContext *rw,
       ^
  702.                              H264RawSEIPayload *current)
  703. {

libavcodec/cbs_h264_syntax_template.c:730:9: Call
  728.         break;
  729.     case H264_SEI_TYPE_USER_DATA_REGISTERED:
  730.         CHECK(FUNC(sei_user_data_registered)
               ^
  731.               (ctx, rw, &current->payload.user_data_registered, &current->payload_size));
  732.         break;

libavcodec/cbs_h264_syntax_template.c:609:1: <LHS trace>
607. }
608. 
609. static int FUNC(sei_user_data_registered)(CodedBitstreamContext *ctx, RWContext *rw,
     ^
610.                                           H264RawSEIUserDataRegistered *current,
611.                                           uint32_t *payload_size)

libavcodec/cbs_h264_syntax_template.c:609:1: Parameter `*payload_size`
    607. }
    608. 
    609. static int FUNC(sei_user_data_registered)(CodedBitstreamContext *ctx, RWContext *rw,
         ^
    610.                                           H264RawSEIUserDataRegistered *current,
    611.                                           uint32_t *payload_size)

libavcodec/cbs_h264_syntax_template.c:609:1: <RHS trace>
607. }
608. 
609. static int FUNC(sei_user_data_registered)(CodedBitstreamContext *ctx, RWContext *rw,
     ^
610.                                           H264RawSEIUserDataRegistered *current,
611.                                           uint32_t *payload_size)

libavcodec/cbs_h264_syntax_template.c:609:1: Parameter `*payload_size`
    607. }
    608. 
    609. static int FUNC(sei_user_data_registered)(CodedBitstreamContext *ctx, RWContext *rw,
         ^
    610.                                           H264RawSEIUserDataRegistered *current,
    611.                                           uint32_t *payload_size)

libavcodec/cbs_h264_syntax_template.c:629:5: Binary operation: ([1, +oo] - [1, 2]):unsigned32 by call to `cbs_h264_read_sei_payload` 
    627.         return AVERROR_INVALIDDATA;
    628.     }
    629.     current->data_length = *payload_size - i;
             ^
    630. #else
    631.     *payload_size = i + current->data_length;
