mirror of
https://github.com/mpv-player/mpv
synced 2025-01-13 00:06:25 +01:00
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
This commit is contained in:
parent
8541fcf365
commit
6960e4c1b1
@ -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},
|
||||
|
Loading…
Reference in New Issue
Block a user