History

vaapi_encode: Remove common priv_data and options fields

The codec-specific context now contains both the common context and the codec-specific options directly.

Mark Thompson committed 8 years ago

Commit c5b4ad21 parent 16161068 files · +0 −33Browse files

Showing the changes to libavcodec/vaapi_encode.c (1 of 8 files). Show all

Unified · Split

libavcodec/vaapi_encode.c+0−10
@@ -1372,17 +1372,9 @@ av_cold int ff_vaapi_encode_init(AVCodecContext *avctx) · 1371 unmodified lines
13721372 return AVERROR(EINVAL);
13731373 }
13741374
1375− ctx->codec_options = ctx->codec_options_data;
1376−
13771375 ctx->va_config = VA_INVALID_ID;
13781376 ctx->va_context = VA_INVALID_ID;
13791377
1380− ctx->priv_data = av_mallocz(ctx->codec->priv_data_size);
1381− if (!ctx->priv_data) {
1382− err = AVERROR(ENOMEM);
1383− goto fail;
1384− }
1385−
13861378 ctx->input_frames_ref = av_buffer_ref(avctx->hw_frames_ctx);
13871379 if (!ctx->input_frames_ref) {
13881380 err = AVERROR(ENOMEM);
@@ -1583,7 +1575,5 @@ av_cold int ff_vaapi_encode_close(AVCodecContext *avctx) · 194 unmodified lines
15831575 av_buffer_unref(&ctx->input_frames_ref);
15841576 av_buffer_unref(&ctx->device_ref);
15851577
1586− av_freep(&ctx->priv_data);
1587−
15881578 return 0;
15891579 }

Keyboard shortcuts

General

Show keyboard shortcuts
?
Focus the current search
/

Issues and pull requests

Open filters
f

Issues, pull requests and Inbox

Select next item
j↓
Select previous item
k↑
Open selected item
Enter
Dismiss filters or clear selection
Esc

Repository code

Go to file
t