nvenc: flush the encoder before closing it, as required by the docs
authorAnton Khirnov <anton@khirnov.net>
Fri, 8 Jan 2016 11:29:38 +0000 (12:29 +0100)
committerAnton Khirnov <anton@khirnov.net>
Tue, 12 Jan 2016 08:23:38 +0000 (09:23 +0100)
commitaac7d6b284c3976eb0c48d61f342f008fb6e4103
tree71698b15e8bfb790223c34e6fbe441e5521e04b2
parentee359c72ef8735122929da96006565e1558f1e55
nvenc: flush the encoder before closing it, as required by the docs

Otherwise, closing the encoder can crash.
libavcodec/nvenc.c