[FFmpeg-cvslog] cmdutils: Ask for a sample in case a odd rotation angle is encountered
Michael Niedermayer
git at videolan.org
Mon May 4 17:56:48 CEST 2015
ffmpeg | branch: master | Michael Niedermayer <michaelni at gmx.at> | Mon May 4 17:33:40 2015 +0200| [f320f2f4c6398404a8653b4a78134ab42dda9ea7] | committer: Michael Niedermayer
cmdutils: Ask for a sample in case a odd rotation angle is encountered
Signed-off-by: Michael Niedermayer <michaelni at gmx.at>
> http://git.videolan.org/gitweb.cgi/ffmpeg.git/?a=commit;h=f320f2f4c6398404a8653b4a78134ab42dda9ea7
---
cmdutils.c | 3 +++
1 file changed, 3 insertions(+)
diff --git a/cmdutils.c b/cmdutils.c
index d5a2cbe..050b992 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;
}
More information about the ffmpeg-cvslog
mailing list