Re: [FFmpeg-devel] [PATCH] avcodec/hevc_sei: Fix check for SEI end

2022-06-24 Thread Andreas Rheinhardt
Andreas Rheinhardt: > The intention behind the current check seems to be to check for > the rbsp_trailing_bits() syntax structure which is always 0x80 > for valid SEI messages. Yet this is wrong: These trailing bits > are not part of the GetBitContext -- they have already been > stripped in ff_h264

[FFmpeg-devel] [PATCH] avcodec/hevc_sei: Fix check for SEI end

2022-06-22 Thread Andreas Rheinhardt
The intention behind the current check seems to be to check for the rbsp_trailing_bits() syntax structure which is always 0x80 for valid SEI messages. Yet this is wrong: These trailing bits are not part of the GetBitContext -- they have already been stripped in ff_h2645_packet_split(). And it is ha