pthread_frame: unref decoded frames on failure