On 1/29/12 4:50 AM, Anton Khirnov wrote:
---
libavcodec/options.c | 41 ++++++++++++++++++++++-------------------
1 files changed, 22 insertions(+), 19 deletions(-)
diff --git a/libavcodec/options.c b/libavcodec/options.c
index 05e8fe8..a9e0509 100644
--- a/libavcodec/options.c
+++ b/libavcodec/options.c
@@ -143,6 +143,28 @@ static const AVOption options[]={
{"ms", "workaround various bugs in microsofts broken decoders", 0,
AV_OPT_TYPE_CONST, {FF_BUG_MS}, 0, 0, V|D, "bug"},
{"trunc", "trancated frames", 0,
AV_OPT_TYPE_CONST, {FF_BUG_TRUNCATED}, 0, 0, V|D, "bug"},
+{"strict", "how strictly to follow the standards", OFFSET(strict_std_compliance),
AV_OPT_TYPE_INT, {.dbl = DEFAULT }, INT_MIN, INT_MAX, A|V|D|E, "strict"},
+{"very", "strictly conform to a older more strict version of the spec or reference
software", 0, AV_OPT_TYPE_CONST, {FF_COMPLIANCE_VERY_STRICT}, 0, 0, V|D|E, "strict"},
drop "older"
+{"strict", "strictly conform to all the things in the spec no matter what
consequences", 0, AV_OPT_TYPE_CONST, {FF_COMPLIANCE_STRICT}, 0, 0, V|D|E,
"strict"},
s/things/provisions/
drop "no matter what consequences"
+{"normal", NULL,
0, AV_OPT_TYPE_CONST, {FF_COMPLIANCE_NORMAL}, 0, 0, V|D|E, "strict"},
+{"unofficial", "allow unofficial extensions",
0, AV_OPT_TYPE_CONST, {FF_COMPLIANCE_UNOFFICIAL}, 0, 0, V|D|E, "strict"},
+{"experimental", "allow non standardized experimental things",
0, AV_OPT_TYPE_CONST, {FF_COMPLIANCE_EXPERIMENTAL}, 0, 0, V|D|E, "strict"},
s/things/features
Beside that looks ok.
_______________________________________________
libav-devel mailing list
[email protected]
https://lists.libav.org/mailman/listinfo/libav-devel