[FFmpeg-cvslog] fftools/cmdutils: constify the argument of get_rotation()

Anton Khirnov git at videolan.org
Mon May 22 18:11:56 EEST 2023


ffmpeg | branch: master | Anton Khirnov <anton at khirnov.net> | Sat May 13 18:39:11 2023 +0200| [37fcbe121d97c3c7c0ddf34d0ccd866d587b6cab] | committer: Anton Khirnov

fftools/cmdutils: constify the argument of get_rotation()

> http://git.videolan.org/gitweb.cgi/ffmpeg.git/?a=commit;h=37fcbe121d97c3c7c0ddf34d0ccd866d587b6cab
---

 fftools/cmdutils.c | 2 +-
 fftools/cmdutils.h | 2 +-
 2 files changed, 2 insertions(+), 2 deletions(-)

diff --git a/fftools/cmdutils.c b/fftools/cmdutils.c
index a1de621d1c..9ec00add30 100644
--- a/fftools/cmdutils.c
+++ b/fftools/cmdutils.c
@@ -994,7 +994,7 @@ void *allocate_array_elem(void *ptr, size_t elem_size, int *nb_elems)
     return new_elem;
 }
 
-double get_rotation(int32_t *displaymatrix)
+double get_rotation(const int32_t *displaymatrix)
 {
     double theta = 0;
     if (displaymatrix)
diff --git a/fftools/cmdutils.h b/fftools/cmdutils.h
index 4496221983..0115940225 100644
--- a/fftools/cmdutils.h
+++ b/fftools/cmdutils.h
@@ -461,6 +461,6 @@ void *allocate_array_elem(void *array, size_t elem_size, int *nb_elems);
     char name[16];\
     snprintf(name, sizeof(name), "%d", rate);
 
-double get_rotation(int32_t *displaymatrix);
+double get_rotation(const int32_t *displaymatrix);
 
 #endif /* FFTOOLS_CMDUTILS_H */



More information about the ffmpeg-cvslog mailing list