Nvv4l2h264enc (and h265) fail to work on TX2 32.5.1

Both errors are caused by the same issue, and are therefore fixed by my previous post. 187974