nvenc: fix encoding with B-frames