Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(1070)

Unified Diff: content/common/gpu/media/exynos_video_encode_accelerator.cc

Issue 23480017: Exynos VEA: minor bugfix with frame size. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 7 years, 4 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « no previous file | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: content/common/gpu/media/exynos_video_encode_accelerator.cc
diff --git a/content/common/gpu/media/exynos_video_encode_accelerator.cc b/content/common/gpu/media/exynos_video_encode_accelerator.cc
index 4b9d38f1b9df6e21a9fc46387a2c9fa566126df4..065e629131e5bdff8a961d8b14067837b877a5e9 100644
--- a/content/common/gpu/media/exynos_video_encode_accelerator.cc
+++ b/content/common/gpu/media/exynos_video_encode_accelerator.cc
@@ -707,7 +707,7 @@ void ExynosVideoEncodeAccelerator::DequeueMfc() {
return;
}
const bool key_frame = ((dqbuf.flags & V4L2_BUF_FLAG_KEYFRAME) != 0);
- const size_t output_size = dqbuf.m.planes[0].bytesused;
+ size_t output_size = dqbuf.m.planes[0].bytesused;
MfcOutputRecord& output_record = mfc_output_buffer_map_[dqbuf.index];
DCHECK(output_record.at_device);
DCHECK(output_record.buffer_ref.get());
@@ -724,6 +724,7 @@ void ExynosVideoEncodeAccelerator::DequeueMfc() {
// Insert stream header before every keyframe.
memmove(data + stream_header_size_, data, output_size);
memcpy(data, stream_header_.get(), stream_header_size_);
+ output_size += stream_header_size_;
}
DVLOG(3) << "DequeueMfc(): returning "
"bitstream_buffer_id=" << output_record.buffer_ref->id
@@ -733,7 +734,7 @@ void ExynosVideoEncodeAccelerator::DequeueMfc() {
base::Bind(&Client::BitstreamBufferReady,
client_,
output_record.buffer_ref->id,
- dqbuf.m.planes[0].bytesused,
+ output_size,
key_frame));
output_record.at_device = false;
output_record.buffer_ref.reset();
« no previous file with comments | « no previous file | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698