Files
ffmpeg/libavcodec
Sergey Svechnikov 703583dbb1 avcodec/cuviddec: improve progressive frame detection
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 have been shown several seconds before (as if the frame was assigned some wrong PTS value).

The reason is that sometimes CUVIDPARSERDISPINFO has property progressive_frame equal to 1 with interlaced videos.
In order to fix the problem we should check if the video is interlaced or progressive in the beginning of a video sequence (cuvid_handle_video_sequence).
And then we just use this information instead of the property progressive_frame in CUVIDPARSERDISPINFO (which is unreliable).

Signed-off-by: Timo Rothenpieler <timo@rothenpieler.org>
2019-04-23 12:48:08 +02:00
..
2019-04-01 11:06:34 -03:00
2019-04-11 11:58:34 +02:00
2019-04-21 23:29:04 +02:00
2019-04-19 14:01:04 +02:00
2019-04-13 18:10:11 +02:00
2019-04-13 18:10:11 +02:00
2019-04-21 19:43:14 +02:00
2019-01-16 01:29:18 +01:00
2019-04-13 18:10:11 +02:00
2019-02-23 22:48:35 +01:00
2019-03-31 23:35:00 +02:00
2019-04-13 18:10:11 +02:00
2019-01-12 17:16:47 +01:00
2019-04-03 23:00:15 +08:00
2019-04-03 23:00:15 +08:00
2019-03-20 21:12:45 +01:00
2019-03-20 21:12:45 +01:00
2019-03-31 18:39:58 +02:00