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

Anton Khirnov anton at khirnov.net
Fri Feb 9 13:19:49 EET 2024


Quoting Andreas Rheinhardt (2024-02-09 12:18:51)
> Signed-off-by: Andreas Rheinhardt <andreas.rheinhardt at 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

-- 
Anton Khirnov


More information about the ffmpeg-devel mailing list