Skip to content
This repository was archived by the owner on Jan 31, 2025. It is now read-only.

Commit b682a68

Browse files
sreerenjbxhaihao
authored andcommitted
Fix QualityRange query for the VP8 encoder
The VP8 encoder supports two quality levels, one for the normal mode and the other for performance-mode(less-quality). This patch ensures that the ConfigAttrib query advertising the correct range.
1 parent 9724ff9 commit b682a68

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

Diff for: src/i965_drv_video.c

+2
Original file line numberDiff line numberDiff line change
@@ -1147,6 +1147,8 @@ i965_GetConfigAttributes(VADriverContextP ctx,
11471147
else if (profile == VAProfileVP9Profile0 &&
11481148
entrypoint == VAEntrypointEncSliceLP) {
11491149
attrib_list[i].value = ENCODER_QUALITY_RANGE_VP9;
1150+
} else if (profile == VAProfileVP8Version0_3) {
1151+
attrib_list[i].value = ENCODER_QUALITY_RANGE;
11501152
}
11511153

11521154
break;

0 commit comments

Comments
 (0)