diff --git a/cmdutils.c b/cmdutils.c
index db89256d0264a0c402bdee570ae78aca41270aec..6e7a0bb09bdf12d11dcd6506a700a95c91030b38 100644
--- a/cmdutils.c
+++ b/cmdutils.c
@@ -2101,7 +2101,7 @@ double get_rotation(AVStream *st)
             theta = 0;
     }
     if (displaymatrix && !theta)
-        theta = av_display_rotation_get((int32_t*) displaymatrix);
+        theta = -av_display_rotation_get((int32_t*) displaymatrix);
 
     theta -= 360*floor(theta/360 + 0.9/360);