When scaling a 10bit video using scale_cuda filter (witch uses pixel format
AV_PIX_FMT_P010LE), the output video gets distorted.
I think it has something to do with the differences in processing between
cuda_sdk and ffnvcodec with cuda_nvcc
(the problem appears after this commit
https://github.c
AVHWFramesContext has aligned width and height.
When initializing a new AVFrame, it receives these aligned values (in
av_hwframe_get_buffer), which leads to incorrect scaling.
The resulting frames are cropped either horizontally or vertically.
As a fix we can overwrite the dimensions to original v
There are 2 types of problems when using adaptive deinterlace with cuvid:
1. Sometimes, in the middle of transcoding, cuvid outputs frames with visible
horizontal lines (as though weave deinterlace method was chosen);
2. Occasionally, on scene changes, cuvid outputs a wrong frame, which should
h