diff options
author | Hendrik Leppkes <h.leppkes@gmail.com> | 2016-03-31 21:49:02 +0100 |
---|---|---|
committer | Derek Buitenhuis <derek.buitenhuis@gmail.com> | 2016-04-03 13:04:17 -0400 |
commit | 6518cbc52a8c59f8f590405a852385adbc47ed62 (patch) | |
tree | 8190319ae6f22317b30f92d65c804e7733712860 /libavformat/internal.h | |
parent | 06c4ed0c0e349602ae6ca31c39693f73bce9bf61 (diff) | |
download | ffmpeg-6518cbc52a8c59f8f590405a852385adbc47ed62.tar.gz |
lavc/utils: Introduce ff_bprint_to_codecpar_extradata for avformat
It will be used by text subtitle demuxers to construct format instructions
straight into extradata. They all currently a similar function that accepts
an AVCodecContext instead.
Signed-off-by: Derek Buitenhuis <derek.buitenhuis@gmail.com>
Diffstat (limited to 'libavformat/internal.h')
-rw-r--r-- | libavformat/internal.h | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/libavformat/internal.h b/libavformat/internal.h index 7defce88a7..cd390ddf70 100644 --- a/libavformat/internal.h +++ b/libavformat/internal.h @@ -22,6 +22,8 @@ #define AVFORMAT_INTERNAL_H #include <stdint.h> + +#include "libavutil/bprint.h" #include "avformat.h" #include "os_support.h" @@ -596,4 +598,9 @@ int ff_reshuffle_raw_rgb(AVFormatContext *s, AVPacket **ppkt, AVCodecContext *en */ int ff_get_packet_palette(AVFormatContext *s, AVPacket *pkt, int ret, uint32_t *palette); +/** + * Finalize buf into extradata and set its size appropriately. + */ +int ff_bprint_to_codecpar_extradata(AVCodecParameters *par, struct AVBPrint *buf); + #endif /* AVFORMAT_INTERNAL_H */ |