From 154486f9adc621e620dacd76d78c30a02cc1dcd3 Mon Sep 17 00:00:00 2001 From: Samuel Pitoiset Date: Fri, 25 May 2012 12:32:39 +0200 Subject: opt: Add av_opt_set_bin() MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit 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ö --- libavutil/opt.h | 1 + 1 file changed, 1 insertion(+) (limited to 'libavutil/opt.h') 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); /** * @} */ -- cgit v1.2.3