mirror of
https://github.com/mpv-player/mpv
synced 2024-09-09 01:16:56 +02:00
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
This commit is contained in:
parent
1301a90761
commit
30542456c3
@ -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) {
|
||||
|
Loading…
Reference in New Issue
Block a user