diff --git a/libavcodec/h264.c b/libavcodec/h264.c index 12713de56b..222bf58b10 100644 --- a/libavcodec/h264.c +++ b/libavcodec/h264.c @@ -877,7 +877,7 @@ static void decode_postinit(H264Context *h, int setup_finished) if (rotation) { av_display_rotation_set((int32_t *)rotation->data, angle); av_display_matrix_flip((int32_t *)rotation->data, - h->sei_vflip, h->sei_hflip); + h->sei_hflip, h->sei_vflip); } } diff --git a/libavcodec/hevc.c b/libavcodec/hevc.c index 8deea097bc..464aaab083 100644 --- a/libavcodec/hevc.c +++ b/libavcodec/hevc.c @@ -2530,7 +2530,7 @@ static int set_side_data(HEVCContext *s) av_display_rotation_set((int32_t *)rotation->data, angle); av_display_matrix_flip((int32_t *)rotation->data, - s->sei_vflip, s->sei_hflip); + s->sei_hflip, s->sei_vflip); } return 0;