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

Unified Diff: media/base/android/video_decoder_job.cc

Issue 730133003: Android: use demuxer configs for video output size. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: documents UpdateOutputFormat reasoning Created 6 years, 1 month 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: media/base/android/video_decoder_job.cc
diff --git a/media/base/android/video_decoder_job.cc b/media/base/android/video_decoder_job.cc
index bfa0dc32a668c41db84321af69a728ec0ad2aef0..e69426db7752aab98af060756aface45494cb5cf 100644
--- a/media/base/android/video_decoder_job.cc
+++ b/media/base/android/video_decoder_job.cc
@@ -158,7 +158,11 @@ bool VideoDecoderJob::UpdateOutputFormat() {
return false;
int prev_output_width = output_width_;
int prev_output_height = output_height_;
- media_codec_bridge_->GetOutputFormat(&output_width_, &output_height_);
+ // See b/18224769. The values reported from MediaCodecBridge::GetOutputFormat
+ // correspond to the actual video frame size, but this is not necessarily the
+ // size that should be output.
+ output_width_ = config_width_;
+ output_height_ = config_height_;
return (output_width_ != prev_output_width) ||
(output_height_ != prev_output_height);
}
« 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