History

vaapi_encode: Clean up the packed header configuration

Add a larger warning more clearly explaining the consequences of missing packed header support in the driver. Also only write the extradata if the user actually requests it via the GLOBAL_HEADER flag.

Mark Thompson committed 8 years ago

Commit 851a63c1 parent bf726c28 files · +80 −68Browse files

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

Unified · Split

libavcodec/vaapi_encode_mpeg2.c+2−2
@@ -615,8 +615,8 @@ static av_cold int vaapi_encode_mpeg2_init(AVCodecContext *avctx) · 614 unmodified lines
615 return AVERROR(EINVAL);615 return AVERROR(EINVAL);
616 }616 }
617 617
618 ctx->va_packed_headers = VA_ENC_PACKED_HEADER_SEQUENCE |618 ctx->desired_packed_headers = VA_ENC_PACKED_HEADER_SEQUENCE |
619 VA_ENC_PACKED_HEADER_PICTURE;619 VA_ENC_PACKED_HEADER_PICTURE;
620 620
621 ctx->surface_width = FFALIGN(avctx->width, 16);621 ctx->surface_width = FFALIGN(avctx->width, 16);
622 ctx->surface_height = FFALIGN(avctx->height, 16);622 ctx->surface_height = FFALIGN(avctx->height, 16);

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