# HG changeset patch # User bcoudurier # Date 1245889067 0 # Node ID 5657f855d5d0bc132777e84bd04af710e5c27cf3 # Parent 499c21a8e0c29601b0c12e4126662ff3c5b583f5 only set par if it does not indicates a rotation, ex iphone 3GS diff -r 499c21a8e0c2 -r 5657f855d5d0 mov.c --- a/mov.c Wed Jun 24 23:04:05 2009 +0000 +++ b/mov.c Thu Jun 25 00:17:47 2009 +0000 @@ -1671,13 +1671,16 @@ sc->width = width >> 16; sc->height = height >> 16; - //transform the display width/height according to the matrix + // transform the display width/height according to the matrix // skip this if the display matrix is the default identity matrix + // or if it is rotating the picture, ex iPhone 3GS // to keep the same scale, use [width height 1<<16] if (width && height && - (display_matrix[0][0] != 65536 || display_matrix[0][1] || - display_matrix[1][0] || display_matrix[1][1] != 65536 || - display_matrix[2][0] || display_matrix[2][1])) { + ((display_matrix[0][0] != 65536 || + display_matrix[1][1] != 65536) && + !display_matrix[0][1] && + !display_matrix[1][0] && + !display_matrix[2][0] && !display_matrix[2][1])) { for (i = 0; i < 2; i++) disp_transform[i] = (int64_t) width * display_matrix[0][i] +