mirror of https://git.ffmpeg.org/ffmpeg.git
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;
|
||||
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…
Reference in New Issue