]> git.sesse.net Git - ffmpeg/commit
avcodec/nvenc: unregister input resource when unmapping
authorTimo Rothenpieler <timo@rothenpieler.org>
Sun, 28 Jan 2018 11:39:03 +0000 (12:39 +0100)
committerTimo Rothenpieler <timo@rothenpieler.org>
Sun, 28 Jan 2018 11:39:06 +0000 (12:39 +0100)
commit32bc4e77f61a5483c83a360b9ccbfc2840daba1e
tree364a7e1e49766bc46216347e9c9f81d8c1cfd6b9
parentbbe1b21022e4872bc64066d46a4567dc1b655f7a
avcodec/nvenc: unregister input resource when unmapping

Currently the resource is only ever unregistered when the
registered_frames array is fully in use and an unmapped entry is re-used
and cleaned up.
I'm pretty sure the frame will have been cleaned up before that happens,
so I'm kinda surprised this never blew up.

Signed-off-by: Timo Rothenpieler <timo@rothenpieler.org>
libavcodec/nvenc.c