Revision: 18884
http://sourceforge.net/p/edk2/code/18884
Author: vanjeff
Date: 2015-11-18 08:55:06 +0000 (Wed, 18 Nov 2015)
Log Message:
-----------
MdeModulePkg/BmpImageDecoderLib: Support ImageFormatUnknown type
Enhance the library to handle unknown image format.
(Sync patch r18774 from main trunk.)
Contributed-under: TianoCore Contribution Agreement 1.0
Signed-off-by: Ruiyu Ni <[email protected]>
Reviewed-by: Feng Tian <[email protected]>
Revision Links:
--------------
http://sourceforge.net/p/edk2/code/18774
Modified Paths:
--------------
branches/UDK2015/MdeModulePkg/Library/BmpImageDecoderLib/BmpImageDecoderLib.c
Modified:
branches/UDK2015/MdeModulePkg/Library/BmpImageDecoderLib/BmpImageDecoderLib.c
===================================================================
---
branches/UDK2015/MdeModulePkg/Library/BmpImageDecoderLib/BmpImageDecoderLib.c
2015-11-18 08:54:23 UTC (rev 18883)
+++
branches/UDK2015/MdeModulePkg/Library/BmpImageDecoderLib/BmpImageDecoderLib.c
2015-11-18 08:55:06 UTC (rev 18884)
@@ -65,7 +65,7 @@
ASSERT ((GopBlt != NULL) && (GopBltSize != NULL));
- if (ImageFormat != ImageFormatBmp) {
+ if ((ImageFormat != ImageFormatBmp) && (ImageFormat != ImageFormatUnknown)) {
return EFI_UNSUPPORTED;
}
------------------------------------------------------------------------------
_______________________________________________
edk2-commits mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/edk2-commits