mirror of
https://github.com/FFmpeg/FFmpeg.git
synced 2025-03-03 14:32:16 +02:00
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
@ -2896,14 +2896,14 @@ the_end:
|
|||||||
break;
|
break;
|
||||||
case 5:
|
case 5:
|
||||||
av_display_rotation_set(matrix, 90.0);
|
av_display_rotation_set(matrix, 90.0);
|
||||||
av_display_matrix_flip(matrix, 0, 1);
|
av_display_matrix_flip(matrix, 1, 0);
|
||||||
break;
|
break;
|
||||||
case 6:
|
case 6:
|
||||||
av_display_rotation_set(matrix, 90.0);
|
av_display_rotation_set(matrix, 90.0);
|
||||||
break;
|
break;
|
||||||
case 7:
|
case 7:
|
||||||
av_display_rotation_set(matrix, -90.0);
|
av_display_rotation_set(matrix, -90.0);
|
||||||
av_display_matrix_flip(matrix, 0, 1);
|
av_display_matrix_flip(matrix, 1, 0);
|
||||||
break;
|
break;
|
||||||
case 8:
|
case 8:
|
||||||
av_display_rotation_set(matrix, -90.0);
|
av_display_rotation_set(matrix, -90.0);
|
||||||
|
Loading…
x
Reference in New Issue
Block a user