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

Unified Diff: media/filters/h264_parser.cc

Issue 2708353004: Propagate color space from the container to the codec. (Closed)
Patch Set: Created 3 years, 10 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 | « media/filters/gpu_video_decoder.cc ('k') | media/gpu/dxva_video_decode_accelerator_win.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: media/filters/h264_parser.cc
diff --git a/media/filters/h264_parser.cc b/media/filters/h264_parser.cc
index c0887fdcf0a5fa59612321d5daf3f939786f9c12..b5ebf4898ef83c1f765d2005656c8753e53240ed 100644
--- a/media/filters/h264_parser.cc
+++ b/media/filters/h264_parser.cc
@@ -130,12 +130,7 @@ gfx::ColorSpace H264SPS::GetColorSpace() const {
video_full_range_flag ? gfx::ColorSpace::RangeID::FULL
: gfx::ColorSpace::RangeID::LIMITED);
} else {
- // TODO(ccameron/hubbe): Add a uniform way to handle default video frames.
- return gfx::ColorSpace(
- gfx::ColorSpace::PrimaryID::BT709, gfx::ColorSpace::TransferID::BT709,
- gfx::ColorSpace::MatrixID::BT709,
- video_full_range_flag ? gfx::ColorSpace::RangeID::FULL
- : gfx::ColorSpace::RangeID::LIMITED);
+ return gfx::ColorSpace();
}
}
« no previous file with comments | « media/filters/gpu_video_decoder.cc ('k') | media/gpu/dxva_video_decode_accelerator_win.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698