avutil/frame: Constify av_frame_side_data_get()

Reviewed-by: Jan Ekström <jeebjp@gmail.com>
Signed-off-by: Andreas Rheinhardt <andreas.rheinhardt@outlook.com>
release/7.0
Andreas Rheinhardt 10 months ago
parent b9fcc135c5
commit 26398da8f3
  1. 3
      doc/APIchanges
  2. 2
      libavutil/frame.c
  3. 2
      libavutil/frame.h
  4. 2
      libavutil/version.h

@ -2,6 +2,9 @@ The last version increases of all libraries were on 2024-03-07
API changes, most recent first:
2024-03-22 - xxxxxxxxxx - lavu 59.4.100 - frame.h
Constified the first-level pointee of av_frame_side_data_get().
2024-03-xx - xxxxxxxxxx - lavc 61.2.100 - avcodec.h
Add AVCodecContext.[nb_]decoded_side_data.

@ -813,7 +813,7 @@ int av_frame_side_data_clone(AVFrameSideData ***sd, int *nb_sd,
return 0;
}
const AVFrameSideData *av_frame_side_data_get(const AVFrameSideData **sd,
const AVFrameSideData *av_frame_side_data_get(const AVFrameSideData * const *sd,
const int nb_sd,
enum AVFrameSideDataType type)
{

@ -1051,7 +1051,7 @@ int av_frame_side_data_clone(AVFrameSideData ***sd, int *nb_sd,
* @return a pointer to the side data of a given type on success, NULL if there
* is no side data with such type in this set.
*/
const AVFrameSideData *av_frame_side_data_get(const AVFrameSideData **sd,
const AVFrameSideData *av_frame_side_data_get(const AVFrameSideData * const *sd,
const int nb_sd,
enum AVFrameSideDataType type);

@ -79,7 +79,7 @@
*/
#define LIBAVUTIL_VERSION_MAJOR 59
#define LIBAVUTIL_VERSION_MINOR 3
#define LIBAVUTIL_VERSION_MINOR 4
#define LIBAVUTIL_VERSION_MICRO 100
#define LIBAVUTIL_VERSION_INT AV_VERSION_INT(LIBAVUTIL_VERSION_MAJOR, \

Loading…
Cancel
Save