[FFmpeg-devel] [PATCH 2/2] libavcodec/options.c: add vbv_delay to options table
Jean-Baptiste Kempf
jb
Wed Feb 16 01:26:14 CET 2011
Add vbv_delay to the options table using the new READONLY flag
---
libavcodec/options.c | 2 ++
1 files changed, 2 insertions(+), 0 deletions(-)
diff --git a/libavcodec/options.c b/libavcodec/options.c
index 57e0804..f61cafa 100644
--- a/libavcodec/options.c
+++ b/libavcodec/options.c
@@ -45,6 +45,7 @@ static const char* context_to_name(void* ptr) {
#define S AV_OPT_FLAG_SUBTITLE_PARAM
#define E AV_OPT_FLAG_ENCODING_PARAM
#define D AV_OPT_FLAG_DECODING_PARAM
+#define RO AV_OPT_FLAG_READONLY
#define AV_CODEC_DEFAULT_BITRATE 200*1000
@@ -435,6 +436,7 @@ static const AVOption options[]={
{"thread_type", "select multithreading type", OFFSET(thread_type), FF_OPT_TYPE_INT, FF_THREAD_SLICE|FF_THREAD_FRAME, 0, INT_MAX, V|E|D, "thread_type"},
{"slice", NULL, 0, FF_OPT_TYPE_CONST, FF_THREAD_SLICE, INT_MIN, INT_MAX, V|E|D, "thread_type"},
{"frame", NULL, 0, FF_OPT_TYPE_CONST, FF_THREAD_FRAME, INT_MIN, INT_MAX, V|E|D, "thread_type"},
+{"vbv_delay", "initial buffer fill time in periods of 27Mhz clock", 0, FF_OPT_TYPE_INT64, 0, 0, INT64_MAX, A|V|E|RO},
{NULL},
};
--
1.7.2.3
More information about the ffmpeg-devel
mailing list