lavc: Add per-thread surfaces in get_hw_frame_parameters()