1
0
mirror of https://github.com/jojo61/vdr-plugin-softhdcuvid.git synced 2023-10-10 13:37:41 +02:00

Fix aspect change within SD channels

Should fix #48
This commit is contained in:
jojo61 2020-06-01 17:15:07 +02:00
parent a41f6b22fd
commit c7c4cb06a6

View File

@ -2913,6 +2913,8 @@ static enum AVPixelFormat Cuvid_get_format(CuvidDecoder * decoder, AVCodecContex
decoder->Closing = 0; decoder->Closing = 0;
decoder->PTS = AV_NOPTS_VALUE; decoder->PTS = AV_NOPTS_VALUE;
VideoDeltaPTS = 0; 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); CuvidMessage(2, "GetFormat Init ok %dx%d\n", video_ctx->width, video_ctx->height);