diff options
author | Anton Khirnov <anton@khirnov.net> | 2014-04-29 15:06:45 +0200 |
---|---|---|
committer | Anton Khirnov <anton@khirnov.net> | 2014-06-01 08:26:43 +0200 |
commit | 0957b274e312e985d69cb490bee2a7ff820acaa6 (patch) | |
tree | 3c299d8ab7cee48d9e8fe187529cde33b38fa0de /libavcodec/avcodec.h | |
parent | eb800f120d2d42590fde2302fe828c847e41e773 (diff) | |
download | ffmpeg-0957b274e312e985d69cb490bee2a7ff820acaa6.tar.gz |
lavc: add an option to enable side data-only packets during encoding
Some encoders (e.g. flac) need to send side data when there is no more
data to be output. This enables them to output a packet with no data in
it, only side data.
Diffstat (limited to 'libavcodec/avcodec.h')
-rw-r--r-- | libavcodec/avcodec.h | 15 |
1 files changed, 15 insertions, 0 deletions
diff --git a/libavcodec/avcodec.h b/libavcodec/avcodec.h index 431041940a..0396ea5614 100644 --- a/libavcodec/avcodec.h +++ b/libavcodec/avcodec.h @@ -2730,6 +2730,21 @@ typedef struct AVCodecContext { * - decoding: unused. */ uint64_t vbv_delay; + + /** + * Encoding only. Allow encoders to output packets that do not contain any + * encoded data, only side data. + * + * Some encoders need to output such packets, e.g. to update some stream + * parameters at the end of encoding. + * + * All callers are strongly recommended to set this option to 1 and update + * their code to deal with such packets, since this behaviour may become + * always enabled in the future (then this option will be deprecated and + * later removed). To avoid ABI issues when this happens, the callers should + * use AVOptions to set this field. + */ + int side_data_only_packets; } AVCodecContext; /** |