diff options
author | Xiang, Haihao <haihao.xiang@intel.com> | 2014-01-17 16:46:52 +0800 |
---|---|---|
committer | Xiang, Haihao <haihao.xiang@intel.com> | 2014-02-27 10:30:26 +0800 |
commit | df966b871c4d321bf332821b22619cfa5519941e (patch) | |
tree | fc55a22685de1d7614f487e1ae3959ab24026e04 /src/i965_drv_video.c | |
parent | 2151cda3d3a0d7c96cd19f9b89c18d30a4b612ef (diff) | |
download | libva-intel-driver-df966b871c4d321bf332821b22619cfa5519941e.tar.gz libva-intel-driver-df966b871c4d321bf332821b22619cfa5519941e.tar.bz2 libva-intel-driver-df966b871c4d321bf332821b22619cfa5519941e.zip |
Don't advertise CBR for MPEG-2 encoding
Signed-off-by: Xiang, Haihao <haihao.xiang@intel.com>
Diffstat (limited to 'src/i965_drv_video.c')
-rwxr-xr-x | src/i965_drv_video.c | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/src/i965_drv_video.c b/src/i965_drv_video.c index ee8e7d4..8c5894c 100755 --- a/src/i965_drv_video.c +++ b/src/i965_drv_video.c @@ -527,7 +527,11 @@ i965_GetConfigAttributes(VADriverContextP ctx, case VAConfigAttribRateControl: if (entrypoint == VAEntrypointEncSlice) { - attrib_list[i].value = VA_RC_CBR | VA_RC_CQP; + attrib_list[i].value = VA_RC_CQP; + + if (profile != VAProfileMPEG2Main && + profile != VAProfileMPEG2Simple) + attrib_list[i].value |= VA_RC_CBR; break; } |