mirror of
https://github.com/nyanmisaka/ffmpeg-rockchip.git
synced 2025-10-07 17:51:52 +08:00
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.
This commit is contained in:
@@ -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,
|
||||
|
Reference in New Issue
Block a user