diff mbox series

[FFmpeg-devel] fftools/cmdutils: Don't cast const away

Message ID AS8P250MB0744D92EE0AF0A3C2B9F24818F4B2@AS8P250MB0744.EURP250.PROD.OUTLOOK.COM
State Accepted
Commit 8c2e86ca2856d4058cbad3c935bd02362f67db4d
Headers show
Series [FFmpeg-devel] fftools/cmdutils: Don't cast const away | expand

Checks

Context Check Description
yinshiyou/make_loongarch64 success Make finished
yinshiyou/make_fate_loongarch64 success Make fate finished
andriy/make_x86 success Make finished
andriy/make_fate_x86 success Make fate finished

Commit Message

Andreas Rheinhardt Feb. 9, 2024, 11:18 a.m. UTC
Signed-off-by: Andreas Rheinhardt <andreas.rheinhardt@outlook.com>
---
 fftools/cmdutils.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

Comments

Anton Khirnov Feb. 9, 2024, 11:19 a.m. UTC | #1
Quoting Andreas Rheinhardt (2024-02-09 12:18:51)
> Signed-off-by: Andreas Rheinhardt <andreas.rheinhardt@outlook.com>
> ---
>  fftools/cmdutils.c | 2 +-
>  1 file changed, 1 insertion(+), 1 deletion(-)
> 
> diff --git a/fftools/cmdutils.c b/fftools/cmdutils.c
> index daf7673adb..5e181a0d85 100644
> --- a/fftools/cmdutils.c
> +++ b/fftools/cmdutils.c
> @@ -1121,7 +1121,7 @@ double get_rotation(const int32_t *displaymatrix)
>  {
>      double theta = 0;
>      if (displaymatrix)
> -        theta = -round(av_display_rotation_get((int32_t*) displaymatrix));
> +        theta = -round(av_display_rotation_get(displaymatrix));
>  
>      theta -= 360*floor(theta/360 + 0.9/360);
>  
> -- 
> 2.34.1

Looks ok
diff mbox series

Patch

diff --git a/fftools/cmdutils.c b/fftools/cmdutils.c
index daf7673adb..5e181a0d85 100644
--- a/fftools/cmdutils.c
+++ b/fftools/cmdutils.c
@@ -1121,7 +1121,7 @@  double get_rotation(const int32_t *displaymatrix)
 {
     double theta = 0;
     if (displaymatrix)
-        theta = -round(av_display_rotation_get((int32_t*) displaymatrix));
+        theta = -round(av_display_rotation_get(displaymatrix));
 
     theta -= 360*floor(theta/360 + 0.9/360);