Commit 36a8968a authored by Hirokazu Honda's avatar Hirokazu Honda Committed by Commit Bot

GpuArcVideoEncodeAccelerator: Initialize bitstream_buffer id to 0

GpuArcVideoEncodeAccelerator doesn't initialize bitstream buffer id. The random
number bitstream buffer id is passed to VEA::UseOutputBitstreamBuffer() at first
and later will pass some middle number as a result of bit operation. Bitstream
buffer id should be initialized by 0. This also set the inital value of
|input_storage_type_| to kShmem.

Bug: None
Test: Confirm bitstream buffer id is 0 in VEA::UseOutputBitstreamBuffer().
Change-Id: I963230439bdd66e66d02d951c1bb38bbd94def94
Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/1623618
Commit-Queue: Hirokazu Honda <hiroh@chromium.org>
Auto-Submit: Hirokazu Honda <hiroh@chromium.org>
Reviewed-by: default avatarAlexandre Courbot <acourbot@chromium.org>
Cr-Commit-Position: refs/heads/master@{#662096}
parent 41a88450
...@@ -22,7 +22,10 @@ namespace arc { ...@@ -22,7 +22,10 @@ namespace arc {
GpuArcVideoEncodeAccelerator::GpuArcVideoEncodeAccelerator( GpuArcVideoEncodeAccelerator::GpuArcVideoEncodeAccelerator(
const gpu::GpuPreferences& gpu_preferences) const gpu::GpuPreferences& gpu_preferences)
: gpu_preferences_(gpu_preferences) {} : gpu_preferences_(gpu_preferences),
input_storage_type_(
media::VideoEncodeAccelerator::Config::StorageType::kShmem),
bitstream_buffer_serial_(0) {}
GpuArcVideoEncodeAccelerator::~GpuArcVideoEncodeAccelerator() = default; GpuArcVideoEncodeAccelerator::~GpuArcVideoEncodeAccelerator() = default;
......
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