diff options
author | Samuel Pitoiset <samuel.pitoiset@gmail.com> | 2012-05-25 12:32:39 +0200 |
---|---|---|
committer | Martin Storsjö <martin@martin.st> | 2012-05-26 14:31:44 +0300 |
commit | 154486f9adc621e620dacd76d78c30a02cc1dcd3 (patch) | |
tree | db2b9327943ceb6a69ae26bb502d0690db9d3cdf /libavutil/opt.h | |
parent | a1a6cdc26e465fc65e641ab31ef47d263b624568 (diff) | |
download | ffmpeg-154486f9adc621e620dacd76d78c30a02cc1dcd3.tar.gz |
opt: Add av_opt_set_bin()
Introduce a new function to set binary data through AVOption,
avoiding having to convert the binary data to a string inbetween.
Signed-off-by: Martin Storsjö <martin@martin.st>
Diffstat (limited to 'libavutil/opt.h')
-rw-r--r-- | libavutil/opt.h | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/libavutil/opt.h b/libavutil/opt.h index 19549408e2..8f800fcf98 100644 --- a/libavutil/opt.h +++ b/libavutil/opt.h @@ -560,6 +560,7 @@ int av_opt_set (void *obj, const char *name, const char *val, int search_f int av_opt_set_int (void *obj, const char *name, int64_t val, int search_flags); int av_opt_set_double(void *obj, const char *name, double val, int search_flags); int av_opt_set_q (void *obj, const char *name, AVRational val, int search_flags); +int av_opt_set_bin (void *obj, const char *name, const uint8_t *val, int size, int search_flags); /** * @} */ |