avcodec/nvdec: avoid needless copy of output frame
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.
Showing
Please
register
or
sign in
to comment