Chromium Code Reviews| Index: media/base/video_frame.cc |
| diff --git a/media/base/video_frame.cc b/media/base/video_frame.cc |
| index 662d6aa1c59edc31bdc55eca32df81001d43ec85..ec70f36534199b622f40df961e5c308653033116 100644 |
| --- a/media/base/video_frame.cc |
| +++ b/media/base/video_frame.cc |
| @@ -223,7 +223,9 @@ scoped_refptr<VideoFrame> VideoFrame::WrapNativeTexture( |
| const gfx::Rect& visible_rect, |
| const gfx::Size& natural_size, |
| base::TimeDelta timestamp) { |
| - if (format != PIXEL_FORMAT_ARGB && format != PIXEL_FORMAT_UYVY) { |
| + if (format != PIXEL_FORMAT_ARGB && |
| + format != PIXEL_FORMAT_UYVY && |
| + format != PIXEL_FORMAT_NV12) { |
|
Daniele Castagna
2015/08/25 15:08:42
You need to add the same to the DCHECK in media/bl
Andre
2015/08/25 18:19:57
I'm not sure how to deal with it there, let me loo
|
| DLOG(ERROR) << "Unsupported pixel format supported, got " |
| << VideoPixelFormatToString(format); |
| return nullptr; |