diff options
Diffstat (limited to 'vaenc/h264encode.c')
| -rw-r--r-- | vaenc/h264encode.c | 7 |
1 files changed, 3 insertions, 4 deletions
diff --git a/vaenc/h264encode.c b/vaenc/h264encode.c index 3f854c4..d69a2ba 100644 --- a/vaenc/h264encode.c +++ b/vaenc/h264encode.c @@ -1216,7 +1216,7 @@ static VAStatus h264_get_config(void) continue; vaQueryConfigEntrypoints(va_dpy, tmp, entrypoints, &num_entrypoints); for (slice_entrypoint = 0; slice_entrypoint < num_entrypoints; slice_entrypoint++) { - if (entrypoints[slice_entrypoint] == VAEntrypointEncSlice) { + if (entrypoints[slice_entrypoint] == va_entrypoint) { support_encode = 1; h264_profile = tmp; break; @@ -1227,7 +1227,7 @@ static VAStatus h264_get_config(void) } if (support_encode == 0) { - printf("Can't find VAEntrypointEncSlice for H264 profiles\n"); + printf("Can't find the target entrypoint for H264 profiles\n"); exit(1); } else { switch (h264_profile) { @@ -1264,7 +1264,7 @@ static VAStatus h264_get_config(void) for (i = 0; i < VAConfigAttribTypeMax; i++) h264_attrib[i].type = i; - va_status = vaGetConfigAttributes(va_dpy, h264_profile, VAEntrypointEncSlice, + va_status = vaGetConfigAttributes(va_dpy, h264_profile, va_entrypoint, &h264_attrib[0], VAConfigAttribTypeMax); CHECK_VASTATUS_NOEXIT(va_status, "vaGetConfigAttributes"); @@ -1392,7 +1392,6 @@ static VAStatus h264_get_config(void) } va_profile = h264_profile; - va_entrypoint = VAEntrypointEncSlice; /* * Force to use sync mode in order to guarantee dumping |
