From 30542456c3dbb5e7a7de4ad17af0b0fdb6c97d55 Mon Sep 17 00:00:00 2001 From: wm4 Date: Thu, 17 Jul 2014 00:28:47 +0200 Subject: demux_lavf: reverse rotation direction with new API The old FFmpeg API and the new Libav API disagree about mp4 display rotation direction. Well, whatever, fix it trial-and-error-style. CC: @mpv-player/stable: add --- demux/demux_lavf.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'demux') diff --git a/demux/demux_lavf.c b/demux/demux_lavf.c index 762d7f571f..cb0277a242 100644 --- a/demux/demux_lavf.c +++ b/demux/demux_lavf.c @@ -502,7 +502,7 @@ static void handle_stream(demuxer_t *demuxer, int i) #if HAVE_AV_DISPLAYMATRIX uint8_t *sd = av_stream_get_side_data(st, AV_PKT_DATA_DISPLAYMATRIX, NULL); if (sd) - sh_video->rotate = av_display_rotation_get((uint32_t *)sd); + sh_video->rotate = -av_display_rotation_get((uint32_t *)sd); #else AVDictionaryEntry *rot = av_dict_get(st->metadata, "rotate", NULL, 0); if (rot && rot->value) { -- cgit v1.2.3