message: Simple, mergable fix to avoid a libyuv CopyPlane crash
  Cr-Commit-Position: refs/heads/main@{#37158}
diff: @@ -45,10 +45,14 @@ void DesktopFrame::CopyPixelsFrom(const uint8_t* src_buffer,
  RTC_CHECK(DesktopRect::MakeSize(size()).ContainsRect(dest_rect));
  uint8_t* dest = GetFrameDataAtPos(dest_rect.top_left());
  + // TODO(crbug.com/1330019): Temporary workaround for a known libyuv crash when
  + // the height or width is 0. Remove this once this change has been merged.
  + if (dest_rect.width() && dest_rect.height()) {
  libyuv::CopyPlane(src_buffer, src_stride, dest, stride(),
  DesktopFrame::kBytesPerPixel * dest_rect.width(),
  dest_rect.height());
  }
  +}
  void DesktopFrame::CopyPixelsFrom(const DesktopFrame& src_frame,
  const DesktopVector& src_pos,
  @@ -157,9 +161,13 @@ BasicDesktopFrame::~BasicDesktopFrame() {
  // static
  DesktopFrame* BasicDesktopFrame::CopyOf(const DesktopFrame& frame) {
  DesktopFrame* result = new BasicDesktopFrame(frame.size());
  + // TODO(crbug.com/1330019): Temporary workaround for a known libyuv crash when
  + // the height or width is 0. Remove this once this change has been merged.
  + if (frame.size().width() && frame.size().height()) {
  libyuv::CopyPlane(frame.data(), frame.stride(), result->data(),
  result->stride(), frame.size().width() * kBytesPerPixel,
  frame.size().height());
  + }
  result->CopyFrameInfoFrom(frame);
  return result;
  }
  