summaryrefslogtreecommitdiff
path: root/cmdutils.c
diff options
context:
space:
mode:
authorMichael Niedermayer <michaelni@gmx.at>2015-05-04 17:33:40 +0200
committerMichael Niedermayer <michaelni@gmx.at>2015-05-04 17:39:23 +0200
commitf320f2f4c6398404a8653b4a78134ab42dda9ea7 (patch)
treeaef0313dcac12f4ba64753f9f5c1017616975369 /cmdutils.c
parent5d309d309108684f742bbf5fc2393f1c519cda72 (diff)
downloadffmpeg-f320f2f4c6398404a8653b4a78134ab42dda9ea7.tar.gz
cmdutils: Ask for a sample in case a odd rotation angle is encountered
Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
Diffstat (limited to 'cmdutils.c')
-rw-r--r--cmdutils.c3
1 files changed, 3 insertions, 0 deletions
diff --git a/cmdutils.c b/cmdutils.c
index d5a2cbea6b..050b992984 100644
--- a/cmdutils.c
+++ b/cmdutils.c
@@ -2249,6 +2249,9 @@ double get_rotation(AVStream *st)
theta -= 360*floor(theta/360 + 0.9/360);
+ if (fabs(theta - 90*round(theta/90)) > 2)
+ av_log_ask_for_sample(NULL, "Odd rotation angle\n");
+
return theta;
}