mirror of
https://github.com/FFmpeg/FFmpeg.git
synced 2025-04-14 00:58:38 +02:00
vaapi_encode: Delete unused field
This commit is contained in:
parent
3d19c5ee68
commit
c67bdd6534
@ -607,11 +607,9 @@ fail_with_picture:
|
|||||||
fail:
|
fail:
|
||||||
for(i = 0; i < pic->nb_param_buffers; i++)
|
for(i = 0; i < pic->nb_param_buffers; i++)
|
||||||
vaDestroyBuffer(ctx->hwctx->display, pic->param_buffers[i]);
|
vaDestroyBuffer(ctx->hwctx->display, pic->param_buffers[i]);
|
||||||
for (i = 0; i < pic->nb_slices; i++) {
|
if (pic->slices) {
|
||||||
if (pic->slices) {
|
for (i = 0; i < pic->nb_slices; i++)
|
||||||
av_freep(&pic->slices[i].priv_data);
|
|
||||||
av_freep(&pic->slices[i].codec_slice_params);
|
av_freep(&pic->slices[i].codec_slice_params);
|
||||||
}
|
|
||||||
}
|
}
|
||||||
fail_at_end:
|
fail_at_end:
|
||||||
av_freep(&pic->codec_picture_params);
|
av_freep(&pic->codec_picture_params);
|
||||||
@ -742,11 +740,9 @@ static int vaapi_encode_free(AVCodecContext *avctx,
|
|||||||
if (pic->encode_issued)
|
if (pic->encode_issued)
|
||||||
vaapi_encode_discard(avctx, pic);
|
vaapi_encode_discard(avctx, pic);
|
||||||
|
|
||||||
for (i = 0; i < pic->nb_slices; i++) {
|
if (pic->slices) {
|
||||||
if (pic->slices) {
|
for (i = 0; i < pic->nb_slices; i++)
|
||||||
av_freep(&pic->slices[i].priv_data);
|
|
||||||
av_freep(&pic->slices[i].codec_slice_params);
|
av_freep(&pic->slices[i].codec_slice_params);
|
||||||
}
|
|
||||||
}
|
}
|
||||||
av_freep(&pic->codec_picture_params);
|
av_freep(&pic->codec_picture_params);
|
||||||
|
|
||||||
|
@ -64,7 +64,6 @@ typedef struct VAAPIEncodeSlice {
|
|||||||
int row_size;
|
int row_size;
|
||||||
int block_start;
|
int block_start;
|
||||||
int block_size;
|
int block_size;
|
||||||
void *priv_data;
|
|
||||||
void *codec_slice_params;
|
void *codec_slice_params;
|
||||||
} VAAPIEncodeSlice;
|
} VAAPIEncodeSlice;
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user