diff options
author | reimar <reimar@b3059339-0415-0410-9bf9-f77b7e298cf2> | 2009-08-11 18:21:31 +0000 |
---|---|---|
committer | reimar <reimar@b3059339-0415-0410-9bf9-f77b7e298cf2> | 2009-08-11 18:21:31 +0000 |
commit | 6960e4c1b1ccccba6ccd7e48d5c882a527632b81 (patch) | |
tree | b8228183704d7734e8d8d8f3c36e3c65509846f3 /codec-cfg.c | |
parent | 8541fcf3651cd1a3b6e60e0d33edc92ece01dfd7 (diff) | |
download | mpv-6960e4c1b1ccccba6ccd7e48d5c882a527632b81.tar.bz2 mpv-6960e4c1b1ccccba6ccd7e48d5c882a527632b81.tar.xz |
Explain how formats must be ordered in fmt_list so the parser can handle
names where one matches the beginning of another.
git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@29492 b3059339-0415-0410-9bf9-f77b7e298cf2
Diffstat (limited to 'codec-cfg.c')
-rw-r--r-- | codec-cfg.c | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/codec-cfg.c b/codec-cfg.c index 8fd6b2ade2..eaafaa3347 100644 --- a/codec-cfg.c +++ b/codec-cfg.c @@ -142,6 +142,9 @@ static int add_to_format(char *s, char *alias,unsigned int *fourcc, unsigned int 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}, |