summaryrefslogtreecommitdiffstats
path: root/demux
diff options
context:
space:
mode:
authorwm4 <wm4@nowhere>2014-07-17 00:28:47 +0200
committerwm4 <wm4@nowhere>2014-07-17 00:30:03 +0200
commit30542456c3dbb5e7a7de4ad17af0b0fdb6c97d55 (patch)
tree411393cb9959bf39d499f1c34291627c472a9cc5 /demux
parent1301a907617459237fb0071b4640ad53d0ae491f (diff)
downloadmpv-30542456c3dbb5e7a7de4ad17af0b0fdb6c97d55.tar.bz2
mpv-30542456c3dbb5e7a7de4ad17af0b0fdb6c97d55.tar.xz
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
Diffstat (limited to 'demux')
-rw-r--r--demux/demux_lavf.c2
1 files changed, 1 insertions, 1 deletions
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) {