summaryrefslogtreecommitdiff
path: root/libavformat/mov.c
diff options
context:
space:
mode:
authorVittorio Giovara <vittorio.giovara@gmail.com>2015-03-17 17:38:48 +0000
committerVittorio Giovara <vittorio.giovara@gmail.com>2015-03-23 20:53:28 +0000
commite4fe535d12f4f30df2dd672e30304af112a5a827 (patch)
tree1ed7edafbb76a3dadaf01e190c681682f8873896 /libavformat/mov.c
parente0046bc9c96150fa06146ace9093f06857dd7b23 (diff)
mov: Write the display matrix in order
This will allow to copy the matrix as is and it is just cleaner to keep the matrix in the same order specified by the mov standard (which is also explicitly described in the documentation). In order to preserve compatibility, flip the angle sign in the display API av_display_rotation_set() and av_display_rotation_get(), and improve the documentation mentioning the rotation direction.
Diffstat (limited to 'libavformat/mov.c')
-rw-r--r--libavformat/mov.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/libavformat/mov.c b/libavformat/mov.c
index 76ce9ee217..ef58492217 100644
--- a/libavformat/mov.c
+++ b/libavformat/mov.c
@@ -2606,7 +2606,7 @@ static int mov_read_tkhd(MOVContext *c, AVIOContext *pb, MOVAtom atom)
for (i = 0; i < 3; i++)
for (j = 0; j < 3; j++)
- sc->display_matrix[i * 3 + j] = display_matrix[j][i];
+ sc->display_matrix[i * 3 + j] = display_matrix[i][j];
}
// transform the display width/height according to the matrix