• Andreas Rheinhardt's avatar
    avutil/frame: Rename av_frame_side_data_get and add wrapper for it · b7bec5d3
    Andreas Rheinhardt authored
    av_frame_side_data_get() has a const AVFrameSideData * const *sd
    parameter; so calling it with an AVFramesSideData **sd like
    AVCodecContext.decoded_side_data (or with a AVFramesSideData * const
    *sd) is safe, but the conversion is not performed automatically
    in C. All users of this function therefore resort to a cast.
    
    This commit changes this: av_frame_side_data_get() is renamed
    to av_frame_side_data_get_c(); furthermore, a static inline
    wrapper for it name av_frame_side_data_get() is added
    that accepts an AVFramesSideData * const * and converts this
    to const AVFramesSideData * const * in a Wcast-qual safe way.
    
    This also allows to remove the casts from the current users.
    Reviewed-by: 's avatarJan Ekström <jeebjp@gmail.com>
    Signed-off-by: 's avatarAndreas Rheinhardt <andreas.rheinhardt@outlook.com>
    b7bec5d3
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...