mirror of
https://github.com/FFmpeg/FFmpeg.git
synced 2025-01-03 05:10:03 +02:00
avcodec/cbs_h266_syntax_template: Don't omit unused function parameter
The calls to the sei_decoded_picture_hash read and write functions are performed with four pointer arguments; just because one of them is unused by the callees does not mean that they can be omitted: This is undefined behaviour. (This was not recognized because the SEI_MESSAGE_RW macro contains casts.) Reviewed-by: Mark Thompson <sw@jkqxz.net> Signed-off-by: Andreas Rheinhardt <andreas.rheinhardt@outlook.com>
This commit is contained in:
parent
b31ee084a9
commit
484e7716bc
@ -3430,7 +3430,7 @@ static int FUNC(slice_header) (CodedBitstreamContext *ctx, RWContext *rw,
|
||||
static int FUNC(sei_decoded_picture_hash) (CodedBitstreamContext *ctx,
|
||||
RWContext *rw,
|
||||
H266RawSEIDecodedPictureHash *
|
||||
current)
|
||||
current, SEIMessageState *unused)
|
||||
{
|
||||
int err, c_idx, i;
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user