summaryrefslogtreecommitdiff
path: root/fftools/cmdutils.c
diff options
context:
space:
mode:
authorJames Almer <jamrial@gmail.com>2021-09-08 15:34:24 -0300
committerJames Almer <jamrial@gmail.com>2021-09-16 12:46:07 -0300
commita8bd8d46f9d32582c5b89cdc57f9cb7169e94066 (patch)
tree10d10ec26608bef6ad0e8107351498e8a4057e00 /fftools/cmdutils.c
parent8f92a1862a5894eec72114f3c097a6ba346908cd (diff)
downloadffmpeg-a8bd8d46f9d32582c5b89cdc57f9cb7169e94066.tar.gz
cmdutils: round rotation value to nearest integer
As recommended by the doxy for av_display_rotation_get(). Signed-off-by: James Almer <jamrial@gmail.com>
Diffstat (limited to 'fftools/cmdutils.c')
-rw-r--r--fftools/cmdutils.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/fftools/cmdutils.c b/fftools/cmdutils.c
index ac172dbd65..7e9c4299fa 100644
--- a/fftools/cmdutils.c
+++ b/fftools/cmdutils.c
@@ -2207,7 +2207,7 @@ double get_rotation(AVStream *st)
AV_PKT_DATA_DISPLAYMATRIX, NULL);
double theta = 0;
if (displaymatrix)
- theta = -av_display_rotation_get((int32_t*) displaymatrix);
+ theta = -round(av_display_rotation_get((int32_t*) displaymatrix));
theta -= 360*floor(theta/360 + 0.9/360);