va/picture : Added failure check for stability
This patch created to exit from for loop incase handle function returns error vaStatus. This will help to capture the correct failure return to application.
Signed-off-by: SureshGuttula sguttula@amd.com