lavd/v4l2enc: check write return value.
libx264: silence: warning: the address of val will always evaluate as true

Signed-off-by: Michael Niedermayer <michaelni@gmx.at>