avcodec/mjpegdec: Fix exif rotation->displaymatrix conversion
The cases in which there was flipping together with a rotation that is not a multiple of the identity were wrong. Signed-off-by: Andreas Rheinhardt <andreas.rheinhardt@outlook.com>
This commit is contained in:
parent
cfa1f0e214
commit
b8a4b273be
1 changed files with 2 additions and 2 deletions
|
|
@ -2896,14 +2896,14 @@ the_end:
|
|||
break;
|
||||
case 5:
|
||||
av_display_rotation_set(matrix, 90.0);
|
||||
av_display_matrix_flip(matrix, 0, 1);
|
||||
av_display_matrix_flip(matrix, 1, 0);
|
||||
break;
|
||||
case 6:
|
||||
av_display_rotation_set(matrix, 90.0);
|
||||
break;
|
||||
case 7:
|
||||
av_display_rotation_set(matrix, -90.0);
|
||||
av_display_matrix_flip(matrix, 0, 1);
|
||||
av_display_matrix_flip(matrix, 1, 0);
|
||||
break;
|
||||
case 8:
|
||||
av_display_rotation_set(matrix, -90.0);
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue