diff options
author | Andreas Rheinhardt <andreas.rheinhardt@outlook.com> | 2023-07-06 22:31:33 +0200 |
---|---|---|
committer | Andreas Rheinhardt <andreas.rheinhardt@outlook.com> | 2023-07-07 03:47:29 +0200 |
commit | 83c0f7b046d0efbfa4ac08b51e3c1500071a857f (patch) | |
tree | 6d3acb91f4d9ea2bb1e69d6e5ec2c5c23bcfe40b /libavcodec/bsf.c | |
parent | 79f41a0760780d997ef02e56cec0db72303bed0a (diff) | |
download | ffmpeg-83c0f7b046d0efbfa4ac08b51e3c1500071a857f.tar.gz |
avformat/evcdec: Avoid nonsense casts
For uint8_t buf[EVC_NALU_LENGTH_PREFIX_SIZE], &buf still points
to the beginning of buf, but it is of type "pointer to array of
EVC_NALU_LENGTH_PREFIX_SIZE uint8_t" (i.e. pointer arithmetic
would operate on blocks of size EVC_NALU_LENGTH_PREFIX_SIZE).
This is of course a different type than uint8_t*, which is why
there have been casts in evc_read_packet(). But these are unnecessary
if one justs removes the unnecessary address-of operator.
Reviewed-by: James Almer <jamrial@gmail.com>
Signed-off-by: Andreas Rheinhardt <andreas.rheinhardt@outlook.com>
Diffstat (limited to 'libavcodec/bsf.c')
0 files changed, 0 insertions, 0 deletions