From c7c4cb06a6fb916e03e0f8d5c22503e6d57b7de9 Mon Sep 17 00:00:00 2001 From: jojo61 Date: Mon, 1 Jun 2020 17:15:07 +0200 Subject: [PATCH] Fix aspect change within SD channels Should fix #48 --- video.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/video.c b/video.c index 094ae74..1e916cf 100644 --- a/video.c +++ b/video.c @@ -2913,6 +2913,8 @@ static enum AVPixelFormat Cuvid_get_format(CuvidDecoder * decoder, AVCodecContex decoder->Closing = 0; decoder->PTS = AV_NOPTS_VALUE; VideoDeltaPTS = 0; + decoder->InputAspect = video_ctx->sample_aspect_ratio; + CuvidUpdateOutput(decoder); // update aspect/scaling } CuvidMessage(2, "GetFormat Init ok %dx%d\n", video_ctx->width, video_ctx->height);