avcodec: add frame side data array to AVCodecContext

This allows configuring an encoder by using AVFrameSideData.
This commit is contained in:
Jan Ekström
2022-11-03 22:04:50 +02:00
parent d9ade14c5c
commit 0d36844ddf
4 changed files with 20 additions and 2 deletions

View File

@@ -2062,6 +2062,19 @@ typedef struct AVCodecContext {
* Number of entries in side_data_prefer_packet.
*/
unsigned nb_side_data_prefer_packet;
/**
* Array containing static side data, such as HDR10 CLL / MDCV structures.
* Side data entries should be allocated by usage of helpers defined in
* libavutil/frame.h.
*
* - encoding: may be set by user before calling avcodec_open2() for
* encoder configuration. Afterwards owned and freed by the
* encoder.
* - decoding: unused
*/
AVFrameSideData **decoded_side_data;
int nb_decoded_side_data;
} AVCodecContext;
/**