diff options
author | Martin Storsjö <martin@martin.st> | 2011-12-16 12:48:09 +0200 |
---|---|---|
committer | Martin Storsjö <martin@martin.st> | 2011-12-21 22:52:40 +0200 |
commit | 3e79c2adb16e4085ffdcac6055ef8379b70224c4 (patch) | |
tree | 6b8d33fb05fac52ac04edc4f60746eb11c8630bf /libavformat/internal.h | |
parent | fe75dc8583b65612f3a94144ee090e741dc926d5 (diff) | |
download | ffmpeg-3e79c2adb16e4085ffdcac6055ef8379b70224c4.tar.gz |
libavformat: Add a utility function for adding parameter change side data
Signed-off-by: Martin Storsjö <martin@martin.st>
Diffstat (limited to 'libavformat/internal.h')
-rw-r--r-- | libavformat/internal.h | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/libavformat/internal.h b/libavformat/internal.h index 45736687d3..559e710014 100644 --- a/libavformat/internal.h +++ b/libavformat/internal.h @@ -299,4 +299,12 @@ int64_t ff_gen_search(AVFormatContext *s, int stream_index, void avpriv_set_pts_info(AVStream *s, int pts_wrap_bits, unsigned int pts_num, unsigned int pts_den); +/** + * Add side data to a packet for changing parameters to the given values. + * Parameters set to 0 aren't included in the change. + */ +int ff_add_param_change(AVPacket *pkt, int32_t channels, + uint64_t channel_layout, int32_t sample_rate, + int32_t width, int32_t height); + #endif /* AVFORMAT_INTERNAL_H */ |