summaryrefslogtreecommitdiff
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-12-05 21:04:00 +0000
commit51020adcecf4004c1586a708d96acc6cbddd050a (patch)
tree131117de1553dd08109be8a038eb1f4ffd097019 /libavcodec/vaapi_encode.h
parentf17eea883a6fc8dbae71fe445ab0c7e925ac2953 (diff)
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. (cherry picked from commit 0cf86fabfa5820596cca2cfead63c6f8df76c3f2)
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 abce6b8ed8..cc05ac8298 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,