ref: 23df8a9ff6ac759f2d8e724679a04c36f18d3c5d
parent: 823b3b682081acbcf1b05b60f7223097e97f4fc8
author: ruil2 <[email protected]>
date: Mon Mar 3 04:03:59 EST 2014
add video format support verification
--- a/codec/encoder/core/src/encoder.cpp
+++ b/codec/encoder/core/src/encoder.cpp
@@ -78,6 +78,10 @@
pSrcPic->iPicWidth = kiWidth;
pSrcPic->iPicHeight = kiHeight;
+ //currently encoder only supports videoFormatI420.
+ if((kiColorspace & (~videoFormatVFlip))!= videoFormatI420)
+ return 2;
+
switch (kiColorspace & (~videoFormatVFlip)) {
case videoFormatI420:
case videoFormatYV12: