avcodec/nvenc: don't enqueue timestamps until a frame was accepted
authorAndrey Turkin <andrey.turkin@gmail.com>
Sun, 29 May 2016 12:51:36 +0000 (15:51 +0300)
committerTimo Rothenpieler <timo@rothenpieler.org>
Tue, 31 May 2016 14:50:45 +0000 (16:50 +0200)
commit58c6dcb4b7e77ca87d6b4bd869b098603b5b11f1
treea720ed078cd4d88a31c6cab85a2ecdde99f9ef97
parent2f53b5b74b658583be39d3c805024c4d93f67f6b
avcodec/nvenc: don't enqueue timestamps until a frame was accepted

Otherwise timestamps/pending FIFOs would go out of sync if nvEncodePicture ever fails.

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