From 23886ecf8b52d80440a7746497817be698de9ea9 Mon Sep 17 00:00:00 2001 From: Hai Lan Date: Fri, 1 Jul 2011 10:32:19 +0800 Subject: [PATCH] test/encode/avcenc: Fix bug of ignoring QP value Signed-off-by: Hai Lan --- test/encode/avcenc.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/test/encode/avcenc.c b/test/encode/avcenc.c index dd978c6..d26a17b 100644 --- a/test/encode/avcenc.c +++ b/test/encode/avcenc.c @@ -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 ) { -- 2.7.4