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 27217e6a509ce15d0ab9efafbb3078fb4bd86fa9..c568b8993a48f97399232aca40914ba4f8f07d6d 100644 |
--- a/content/common/gpu/media/dxva_video_decode_accelerator.cc |
+++ b/content/common/gpu/media/dxva_video_decode_accelerator.cc |
@@ -758,6 +758,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; |