Re: [FFmpeg-devel] [PATCH 1/5] avcodec/nvdec: avoid needless copy of output frame

2018-05-08 Thread Philip Langdale
On 2018-05-08 11:36, Timo Rothenpieler wrote: Replaces the data pointers with the mapped cuvid ones. Adds buffer_refs to the frame to ensure the needed contexts stay alive and the cuvid idx stays allocated. Adds another buffer_ref to unmap the frame when it's unreferenced itself. ---

[FFmpeg-devel] [PATCH 1/5] avcodec/nvdec: avoid needless copy of output frame

2018-05-08 Thread Timo Rothenpieler
Replaces the data pointers with the mapped cuvid ones. Adds buffer_refs to the frame to ensure the needed contexts stay alive and the cuvid idx stays allocated. Adds another buffer_ref to unmap the frame when it's unreferenced itself. --- libavcodec/nvdec.c | 96