Always check if ff_alloc_picture() succeeds.