avcodec/nvenc: Fix b-frame parameter handling
authorTimo Rothenpieler <timo@rothenpieler.org>
Mon, 26 Jan 2015 12:28:21 +0000 (13:28 +0100)
committerMichael Niedermayer <michaelni@gmx.at>
Mon, 26 Jan 2015 14:39:01 +0000 (15:39 +0100)
commit914fd42b8ac58e9d45361ce0986d50b066c969ae
tree62b0f77f039abcb3964e0a2f119b3cb8b27dab69
parentfcb18ab8d03d6ff94fb9b1fd8a4289e53f59ab1a
avcodec/nvenc: Fix b-frame parameter handling

This should behave similar to x264 and other encoders, as it handles a
gop_size of 0 as Intra-Only, while it's still possible to control how
many B-Frames it inserts.

Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
libavcodec/nvenc.c