From a18a7cd4f568aa934be30b2cdf813a0879b8db19 Mon Sep 17 00:00:00 2001 From: wm4 Date: Mon, 30 Oct 2017 21:07:38 +0100 Subject: vd_lavc: move display mastering data stuff to mp_image This is where it should be. It only wasn't because of an old libavcodec bug, that returned the side data only on every IDR. This required some sort of caching, which is now dropped. (mp_image wouldn't have been able to do this kind of caching, because this code is stateless.) We don't support these old libavcodec versions anymore, which is why this is not needed anymore. Also move initialization of rotation/stereo stuff to dec_video.c. --- video/decode/dec_video.c | 3 +++ 1 file changed, 3 insertions(+) (limited to 'video/decode/dec_video.c') diff --git a/video/decode/dec_video.c b/video/decode/dec_video.c index 67c5eaccd7..ae0f9e27a4 100644 --- a/video/decode/dec_video.c +++ b/video/decode/dec_video.c @@ -227,6 +227,9 @@ static void fix_image_params(struct dec_video *d_video, if (p.p_w <= 0 || p.p_h <= 0) p.p_w = p.p_h = 1; + p.rotate = d_video->codec->rotate; + p.stereo_in = d_video->codec->stereo_mode; + if (opts->video_rotate < 0) { p.rotate = 0; } else { -- cgit v1.2.3