• 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
libx264.c 63.5 KB