Index: content/common/gpu/media/dxva_video_decode_accelerator.cc |
diff --git a/content/common/gpu/media/dxva_video_decode_accelerator.cc b/content/common/gpu/media/dxva_video_decode_accelerator.cc |
index 348d8cc440119a4f31651070200a8b80ffce7d29..3bc6dee1e622cf4ca0d4494fc1f9d58efec22107 100644 |
--- a/content/common/gpu/media/dxva_video_decode_accelerator.cc |
+++ b/content/common/gpu/media/dxva_video_decode_accelerator.cc |
@@ -760,6 +760,19 @@ GLenum DXVAVideoDecodeAccelerator::GetSurfaceInternalFormat() const { |
return GL_BGRA_EXT; |
} |
+// static |
+media::VideoDecodeAccelerator::SupportedResolution |
+DXVAVideoDecodeAccelerator::GetSupportedResolution() { |
+ media::VideoDecodeAccelerator::SupportedResolution resolution; |
+ // Windows Media Foundation H.264 decoding does not support decoding videos |
+ // with any dimension smaller than 48 pixels: |
+ // http://msdn.microsoft.com/en-us/library/windows/desktop/dd797815 |
+ resolution.min.SetSize(48, 48); |
+ // Use 1088 to account for 16x16 macroblocks. |
+ resolution.max.SetSize(1920, 1088); |
+ return resolution; |
+} |
+ |
bool DXVAVideoDecodeAccelerator::InitDecoder(media::VideoCodecProfile profile) { |
HMODULE decoder_dll = NULL; |