v4l2: fix some regression in encode input buffer change

set encode input buffer recyclable after encode
always set buf.type etc before DQBUF
configure: check minium version vaapi support