• Andreas Rheinhardt's avatar
    avformat/evcdec: Avoid nonsense casts · 83c0f7b0
    Andreas Rheinhardt authored
    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: 's avatarJames Almer <jamrial@gmail.com>
    Signed-off-by: 's avatarAndreas Rheinhardt <andreas.rheinhardt@outlook.com>
    83c0f7b0
Name
Last commit
Last update
compat Loading commit data...
doc Loading commit data...
ffbuild Loading commit data...
fftools Loading commit data...
libavcodec Loading commit data...
libavdevice Loading commit data...
libavfilter Loading commit data...
libavformat Loading commit data...
libavutil Loading commit data...
libpostproc Loading commit data...
libswresample Loading commit data...
libswscale Loading commit data...
presets Loading commit data...
tests Loading commit data...
tools Loading commit data...
.gitattributes Loading commit data...
.gitignore Loading commit data...
.mailmap Loading commit data...
.travis.yml Loading commit data...
CONTRIBUTING.md Loading commit data...
COPYING.GPLv2 Loading commit data...
COPYING.GPLv3 Loading commit data...
COPYING.LGPLv2.1 Loading commit data...
COPYING.LGPLv3 Loading commit data...
CREDITS Loading commit data...
Changelog Loading commit data...
INSTALL.md Loading commit data...
LICENSE.md Loading commit data...
MAINTAINERS Loading commit data...
Makefile Loading commit data...
README.md Loading commit data...
RELEASE Loading commit data...
configure Loading commit data...