h264: rebuild the default ref list if the reference count changes