Commit 12a56703 authored by Maksim Ivanov's avatar Maksim Ivanov Committed by Commit Bot

Fix use-after-move in //components/chromeos_camera/

Fix use-after-move (potential) bugs found by the
"bugprone-use-after-move" clang-tidy check.

Bug: 1122844
Change-Id: Ib06c2df5f186002038697ab7249525c3a12ff06f
Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/2556839
Commit-Queue: Ricky Liang <jcliang@chromium.org>
Auto-Submit: Maksim Ivanov <emaxx@chromium.org>
Reviewed-by: default avatarRicky Liang <jcliang@chromium.org>
Cr-Commit-Position: refs/heads/master@{#830874}
parent 75f9b328
...@@ -774,7 +774,7 @@ void JpegClient::StartDecode(int32_t task_id, bool do_prepare_memory) { ...@@ -774,7 +774,7 @@ void JpegClient::StartDecode(int32_t task_id, bool do_prepare_memory) {
in_shm_.Duplicate()); in_shm_.Duplicate());
ASSERT_EQ(dup_region.GetSize(), image_file->data_str.size()); ASSERT_EQ(dup_region.GetSize(), image_file->data_str.size());
media::BitstreamBuffer bitstream_buffer(task_id, std::move(dup_region), media::BitstreamBuffer bitstream_buffer(task_id, std::move(dup_region),
dup_region.GetSize()); image_file->data_str.size());
decoder_->Decode(std::move(bitstream_buffer), hw_out_frame_); decoder_->Decode(std::move(bitstream_buffer), hw_out_frame_);
} }
} }
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment