test/encode/avcenc: Fix bug of ignoring QP value
authorHai Lan <hai.lan@intel.com>
Fri, 1 Jul 2011 02:32:19 +0000 (10:32 +0800)
committerXiang, Haihao <haihao.xiang@intel.com>
Tue, 28 May 2013 08:46:48 +0000 (16:46 +0800)
Signed-off-by: Hai Lan <hai.lan@intel.com>
test/encode/avcenc.c

index dd978c6..d26a17b 100644 (file)
@@ -1175,7 +1175,7 @@ int main(int argc, char *argv[])
     picture_width_in_mbs = (picture_width + 15) / 16;
     picture_height_in_mbs = (picture_height + 15) / 16;
 
-    if (argc == 6) {
+    if (argc == 6 || argc == 7) {
         qp_value = -1;
         sscanf(argv[5], "qp=%d", &qp_value);
         if ( qp_value == -1 ) {