diff --git a/src/config.c b/src/config.c index d769974..9f8e0a6 100644 --- a/src/config.c +++ b/src/config.c @@ -124,7 +124,7 @@ VAStatus RequestQueryConfigProfiles(VADriverContextP context, found = v4l2_find_format(driver_data->video_fd, V4L2_BUF_TYPE_VIDEO_OUTPUT, - V4L2_PIX_FMT_H264_SLICE); + V4L2_PIX_FMT_H264_SLICE_RAW); if (found && index < (V4L2_REQUEST_MAX_CONFIG_ATTRIBUTES - 5)) { profiles[index++] = VAProfileH264Main; profiles[index++] = VAProfileH264High; diff --git a/src/context.c b/src/context.c index 38733a8..af9f000 100644 --- a/src/context.c +++ b/src/context.c @@ -100,7 +100,7 @@ VAStatus RequestCreateContext(VADriverContextP context, VAConfigID config_id, case VAProfileH264ConstrainedBaseline: case VAProfileH264MultiviewHigh: case VAProfileH264StereoHigh: - pixelformat = V4L2_PIX_FMT_H264_SLICE; + pixelformat = V4L2_PIX_FMT_H264_SLICE_RAW; break; case VAProfileHEVCMain: