h264: do not abuse the context as a temporary storage in get_last_needed_nal()