summaryrefslogtreecommitdiffstats
path: root/libavcodec/vaapi_encode.h
diff options
context:
space:
mode:
authorMark Thompson <sw@jkqxz.net>2016-10-02 08:48:34 +0100
committerMark Thompson <sw@jkqxz.net>2016-10-17 21:07:25 +0100
commit0cf86fabfa5820596cca2cfead63c6f8df76c3f2 (patch)
tree0790806aa81b546d2aa2b67c685e1faafed14abb /libavcodec/vaapi_encode.h
parentf9bb356e0eb38ab4df32df8276b71a0b2626538f (diff)
downloadffmpeg-streaming-0cf86fabfa5820596cca2cfead63c6f8df76c3f2.zip
ffmpeg-streaming-0cf86fabfa5820596cca2cfead63c6f8df76c3f2.tar.gz
vaapi_encode: Write sequence header as extradata
Only works if packed headers are supported, where we can know the output before generating the first frame.
Diffstat (limited to 'libavcodec/vaapi_encode.h')
-rw-r--r--libavcodec/vaapi_encode.h2
1 files changed, 2 insertions, 0 deletions
diff --git a/libavcodec/vaapi_encode.h b/libavcodec/vaapi_encode.h
index c47d979..a9ab527 100644
--- a/libavcodec/vaapi_encode.h
+++ b/libavcodec/vaapi_encode.h
@@ -235,6 +235,8 @@ typedef struct VAAPIEncodeType {
int slice_header_type;
// Write the packed header data to the provided buffer.
+ // The sequence header is also used to fill the codec extradata
+ // when the encoder is starting.
int (*write_sequence_header)(AVCodecContext *avctx,
char *data, size_t *data_len);
int (*write_picture_header)(AVCodecContext *avctx,
OpenPOWER on IntegriCloud