[MPlayer-cvslog] r29492 - trunk/codec-cfg.c

reimar subversion at mplayerhq.hu
Tue Aug 11 20:21:31 CEST 2009


Author: reimar
Date: Tue Aug 11 20:21:31 2009
New Revision: 29492

Log:
Explain how formats must be ordered in fmt_list so the parser can handle
names where one matches the beginning of another.

Modified:
   trunk/codec-cfg.c

Modified: trunk/codec-cfg.c
==============================================================================
--- trunk/codec-cfg.c	Tue Aug 11 20:15:21 2009	(r29491)
+++ trunk/codec-cfg.c	Tue Aug 11 20:21:31 2009	(r29492)
@@ -142,6 +142,9 @@ static int add_to_format(char *s, char *
 	        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},


More information about the MPlayer-cvslog mailing list