[FFmpeg-cvslog] fftools/ffmpeg: fix av_display_rotation_set() type cast

Zhao Zhili git at videolan.org
Thu Sep 22 15:07:41 EEST 2022


ffmpeg | branch: master | Zhao Zhili <zhilizhao at tencent.com> | Thu Sep  1 10:57:42 2022 +0800| [af919cf780b59cdf60835f412f78db1138fc1138] | committer: Zhao Zhili

fftools/ffmpeg: fix av_display_rotation_set() type cast

Signed-off-by: Zhao Zhili <zhilizhao at tencent.com>

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

 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);
                 }
             }
         }



More information about the ffmpeg-cvslog mailing list