changeset 29450:85bea9f80e86

Explain how formats must be ordered in fmt_list so the parser can handle names where one matches the beginning of another.
author reimar
date Tue, 11 Aug 2009 18:21:31 +0000
parents 290afe64ba96
children 6aca83f5ba73
files codec-cfg.c
diffstat 1 files changed, 3 insertions(+), 0 deletions(-) [+]
line wrap: on
line diff
--- 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},