diff mbox series

[FFmpeg-devel,21/36] fftools/cmdutils: constify the argument of get_rotation()

Message ID 20230517102029.541-21-anton@khirnov.net
State Accepted
Commit 37fcbe121d97c3c7c0ddf34d0ccd866d587b6cab
Headers show
Series [FFmpeg-devel,01/36] fftools/ffmpeg: shorten a variable name | expand

Checks

Context Check Description
yinshiyou/make_loongarch64 success Make finished
yinshiyou/make_fate_loongarch64 fail Make fate failed

Commit Message

Anton Khirnov May 17, 2023, 10:20 a.m. UTC
---
 fftools/cmdutils.c | 2 +-
 fftools/cmdutils.h | 2 +-
 2 files changed, 2 insertions(+), 2 deletions(-)
diff mbox series

Patch

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 */