# HG changeset patch # User reimar # Date 1250014891 0 # Node ID 85bea9f80e8633c7af65b8deec923500988c9688 # Parent 290afe64ba96e51539f5b5a79f0fa4a1329a9cd8 Explain how formats must be ordered in fmt_list so the parser can handle names where one matches the beginning of another. diff -r 290afe64ba96 -r 85bea9f80e86 codec-cfg.c --- a/codec-cfg.c Tue Aug 11 18:15:21 2009 +0000 +++ b/codec-cfg.c Tue Aug 11 18:21:31 2009 +0000 @@ -142,6 +142,9 @@ const char *name; const unsigned int num; } fmt_table[] = { + // note: due to parser deficiencies/simplicity, if one format + // name matches the beginning of another, the longer one _must_ + // come first in this list. {"YV12", IMGFMT_YV12}, {"I420", IMGFMT_I420}, {"IYUV", IMGFMT_IYUV},