[FFmpeg-devel] [PATCH] option: allow to set slice_flags to video decoder

Zhong Li zhong.li at intel.com
Thu Sep 21 09:17:53 EEST 2017


Make slice_flags setable as avcodec.h definition

Signed-off-by: Zhong Li <zhong.li at intel.com>
---
 libavcodec/options_table.h | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/libavcodec/options_table.h b/libavcodec/options_table.h
index 12712fb541..5b9e344554 100644
--- a/libavcodec/options_table.h
+++ b/libavcodec/options_table.h
@@ -340,7 +340,7 @@ static const AVOption avcodec_options[] = {
 #if FF_API_PRIVATE_OPT
 {"context", "context model", OFFSET(context_model), AV_OPT_TYPE_INT, {.i64 = DEFAULT }, INT_MIN, INT_MAX, V|E},
 #endif
-{"slice_flags", NULL, OFFSET(slice_flags), AV_OPT_TYPE_INT, {.i64 = DEFAULT }, INT_MIN, INT_MAX},
+{"slice_flags", NULL, OFFSET(slice_flags), AV_OPT_TYPE_INT, {.i64 = DEFAULT }, INT_MIN, INT_MAX, V|D},
 #if FF_API_XVMC
 {"xvmc_acceleration", NULL, OFFSET(xvmc_acceleration), AV_OPT_TYPE_INT, {.i64 = DEFAULT }, INT_MIN, INT_MAX},
 #endif /* FF_API_XVMC */
-- 
2.11.0



More information about the ffmpeg-devel mailing list