[FFmpeg-devel] [PATCH]Set option flags for AV_CODEC_FLAG_TRUNCATED

Carl Eugen Hoyos cehoyos at ag.or.at
Wed Sep 23 09:36:35 CEST 2015


Hi!

The flag truncated is currently not shown by the help output.

Please comment, Carl Eugen
-------------- next part --------------
diff --git a/libavcodec/options_table.h b/libavcodec/options_table.h
index 2171aea..8b32ae2 100644
--- a/libavcodec/options_table.h
+++ b/libavcodec/options_table.h
@@ -70,7 +70,7 @@ static const AVOption avcodec_options[] = {
 {"emu_edge", "do not draw edges", 0, AV_OPT_TYPE_CONST, {.i64 = CODEC_FLAG_EMU_EDGE }, INT_MIN, INT_MAX, 0, "flags"},
 #endif
 {"psnr", "error[?] variables will be set during encoding", 0, AV_OPT_TYPE_CONST, {.i64 = AV_CODEC_FLAG_PSNR }, INT_MIN, INT_MAX, V|E, "flags"},
-{"truncated", NULL, 0, AV_OPT_TYPE_CONST, {.i64 = AV_CODEC_FLAG_TRUNCATED }, INT_MIN, INT_MAX, 0, "flags"},
+{"truncated", "Input bitstream might be randomly truncated", 0, AV_OPT_TYPE_CONST, {.i64 = AV_CODEC_FLAG_TRUNCATED }, INT_MIN, INT_MAX, V|D, "flags"},
 #if FF_API_NORMALIZE_AQP
 {"naq", "normalize adaptive quantization", 0, AV_OPT_TYPE_CONST, {.i64 = CODEC_FLAG_NORMALIZE_AQP }, INT_MIN, INT_MAX, V|E, "flags"},
 #endif


More information about the ffmpeg-devel mailing list