From 9ab26f91b561a5f29b60be996a8bea739692d10d Mon Sep 17 00:00:00 2001 From: "Xiang, Haihao" Date: Wed, 22 Feb 2012 09:56:35 +0800 Subject: [PATCH] test/transcode/mpeg2transcode: use the method of constant qp Signed-off-by: Xiang, Haihao --- test/transcode/mpeg2transcode.cpp | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/test/transcode/mpeg2transcode.cpp b/test/transcode/mpeg2transcode.cpp index 38efc40..686db7f 100644 --- a/test/transcode/mpeg2transcode.cpp +++ b/test/transcode/mpeg2transcode.cpp @@ -2036,14 +2036,14 @@ static void create_encode_pipe() assert(0); } - if ((attrib[1].value & VA_RC_VBR) == 0) { + if ((attrib[1].value & VA_RC_CQP) == 0) { /* Can't find matched RC mode */ - printf("VBR mode doesn't found, exit\n"); + printf("Can't find the desired RC mode, exit\n"); assert(0); } attrib[0].value = VA_RT_FORMAT_YUV420; /* set to desired RT format */ - attrib[1].value = VA_RC_VBR; /* set to desired RC mode */ + attrib[1].value = VA_RC_CQP; /* set to desired RC mode */ va_status = vaCreateConfig(va_dpy, avcenc_context.profile, VAEntrypointEncSlice, &attrib[0], 2,&avcenc_context.config_id); -- 2.7.4