|
|
|
@@ -232,8 +232,6 @@ static int vaapi_h264_start_frame(AVCodecContext *avctx, |
|
|
|
VAPictureParameterBufferH264 *pic_param; |
|
|
|
VAIQMatrixBufferH264 *iq_matrix; |
|
|
|
|
|
|
|
ff_dlog(avctx, "vaapi_h264_start_frame()\n"); |
|
|
|
|
|
|
|
vactx->slice_param_size = sizeof(VASliceParameterBufferH264); |
|
|
|
|
|
|
|
/* Fill in VAPictureParameterBufferH264. */ |
|
|
|
@@ -298,7 +296,6 @@ static int vaapi_h264_end_frame(AVCodecContext *avctx) |
|
|
|
H264SliceContext *sl = &h->slice_ctx[0]; |
|
|
|
int ret; |
|
|
|
|
|
|
|
ff_dlog(avctx, "vaapi_h264_end_frame()\n"); |
|
|
|
ret = ff_vaapi_commit_slices(vactx); |
|
|
|
if (ret < 0) |
|
|
|
goto finish; |
|
|
|
@@ -323,9 +320,6 @@ static int vaapi_h264_decode_slice(AVCodecContext *avctx, |
|
|
|
H264SliceContext *sl = &h->slice_ctx[0]; |
|
|
|
VASliceParameterBufferH264 *slice_param; |
|
|
|
|
|
|
|
ff_dlog(avctx, "vaapi_h264_decode_slice(): buffer %p, size %d\n", |
|
|
|
buffer, size); |
|
|
|
|
|
|
|
/* Fill in VASliceParameterBufferH264. */ |
|
|
|
slice_param = (VASliceParameterBufferH264 *)ff_vaapi_alloc_slice(avctx->hwaccel_context, buffer, size); |
|
|
|
if (!slice_param) |
|
|
|
|