From af919cf780b59cdf60835f412f78db1138fc1138 Mon Sep 17 00:00:00 2001 From: Zhao Zhili Date: Thu, 1 Sep 2022 10:57:42 +0800 Subject: [PATCH] fftools/ffmpeg: fix av_display_rotation_set() type cast Signed-off-by: Zhao Zhili --- fftools/ffmpeg.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/fftools/ffmpeg.c b/fftools/ffmpeg.c index 0e1477299d..69716de6b6 100644 --- a/fftools/ffmpeg.c +++ b/fftools/ffmpeg.c @@ -3256,7 +3256,7 @@ static int init_output_stream(OutputStream *ost, AVFrame *frame, return AVERROR(ENOMEM); memcpy(dst, sd->data, sd->size); if (ist->autorotate && sd->type == AV_PKT_DATA_DISPLAYMATRIX) - av_display_rotation_set((uint32_t *)dst, 0); + av_display_rotation_set((int32_t *)dst, 0); } } }