[FFmpeg-cvslog] avutil/frame: Constify av_frame_side_data_get()
Andreas Rheinhardt
git at videolan.org
Sat Mar 23 00:51:41 EET 2024
ffmpeg | branch: master | Andreas Rheinhardt <andreas.rheinhardt at outlook.com> | Fri Mar 22 14:37:15 2024 +0100| [26398da8f3001518e6d229e69f8dedd50ef7d5f9] | committer: Andreas Rheinhardt
avutil/frame: Constify av_frame_side_data_get()
Reviewed-by: Jan Ekström <jeebjp at gmail.com>
Signed-off-by: Andreas Rheinhardt <andreas.rheinhardt at outlook.com>
> http://git.videolan.org/gitweb.cgi/ffmpeg.git/?a=commit;h=26398da8f3001518e6d229e69f8dedd50ef7d5f9
---
doc/APIchanges | 3 +++
libavutil/frame.c | 2 +-
libavutil/frame.h | 2 +-
libavutil/version.h | 2 +-
4 files changed, 6 insertions(+), 3 deletions(-)
diff --git a/doc/APIchanges b/doc/APIchanges
index a025f1df14..9d25621e43 100644
--- a/doc/APIchanges
+++ b/doc/APIchanges
@@ -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.
diff --git a/libavutil/frame.c b/libavutil/frame.c
index 89db687d9c..8598aa98a2 100644
--- a/libavutil/frame.c
+++ b/libavutil/frame.c
@@ -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)
{
diff --git a/libavutil/frame.h b/libavutil/frame.h
index a7fc909ad8..cf9ffe1ba9 100644
--- a/libavutil/frame.h
+++ b/libavutil/frame.h
@@ -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);
diff --git a/libavutil/version.h b/libavutil/version.h
index 5027b025be..882003f719 100644
--- a/libavutil/version.h
+++ b/libavutil/version.h
@@ -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, \
More information about the ffmpeg-cvslog
mailing list