Return the error instead of assert in vaEndPicture
Return the error instead of assert in vaEndPicture

This is to fix the crash issue caused by the incorrect parameter.

Signed-off-by: Zhao Yakui <21bae65ecea50a19bd9d0fef489914760189fd5b@intel.com>

halleyzhao/libva-intel-driver-fdo,halleyzhao/libva-intel-driver-fdo,halleyzhao/libva-intel-driver-fdo,halleyzhao/libva-intel-driver-fdo