diff options
author | reimar <reimar@b3059339-0415-0410-9bf9-f77b7e298cf2> | 2009-08-12 01:04:37 +0000 |
---|---|---|
committer | reimar <reimar@b3059339-0415-0410-9bf9-f77b7e298cf2> | 2009-08-12 01:04:37 +0000 |
commit | b6c472202f7ca15a07e665b5c0f29d6391e211d1 (patch) | |
tree | d11f064e893a9e2986a4f898bf7864c2ef6c7921 /codec-cfg.c | |
parent | a3d39e2702b0b9d3abc721b60216fbd866fea48e (diff) | |
download | mpv-b6c472202f7ca15a07e665b5c0f29d6391e211d1.tar.bz2 mpv-b6c472202f7ca15a07e665b5c0f29d6391e211d1.tar.xz |
make codec-cfg reuse the proper defined constants for all RGB/BGR formats
instead of re-constructing them itself.
git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@29501 b3059339-0415-0410-9bf9-f77b7e298cf2
Diffstat (limited to 'codec-cfg.c')
-rw-r--r-- | codec-cfg.c | 28 |
1 files changed, 14 insertions, 14 deletions
diff --git a/codec-cfg.c b/codec-cfg.c index c0246e9f21..86424b54c4 100644 --- a/codec-cfg.c +++ b/codec-cfg.c @@ -164,20 +164,20 @@ static int add_to_format(char *s, char *alias,unsigned int *fourcc, unsigned int {"RGB48LE", IMGFMT_RGB48LE}, {"RGB48BE", IMGFMT_RGB48BE}, - {"RGB4", IMGFMT_RGB|4}, - {"RGB8", IMGFMT_RGB|8}, - {"RGB15", IMGFMT_RGB|15}, - {"RGB16", IMGFMT_RGB|16}, - {"RGB24", IMGFMT_RGB|24}, - {"RGB32", IMGFMT_RGB|32}, - {"BGR4", IMGFMT_BGR|4}, - {"BGR8", IMGFMT_BGR|8}, - {"BGR15", IMGFMT_BGR|15}, - {"BGR16", IMGFMT_BGR|16}, - {"BGR24", IMGFMT_BGR|24}, - {"BGR32", IMGFMT_BGR|32}, - {"RGB1", IMGFMT_RGB|1}, - {"BGR1", IMGFMT_BGR|1}, + {"RGB4", IMGFMT_RGB4}, + {"RGB8", IMGFMT_RGB8}, + {"RGB15", IMGFMT_RGB15}, + {"RGB16", IMGFMT_RGB16}, + {"RGB24", IMGFMT_RGB24}, + {"RGB32", IMGFMT_RGB32}, + {"BGR4", IMGFMT_BGR4}, + {"BGR8", IMGFMT_BGR8}, + {"BGR15", IMGFMT_BGR15}, + {"BGR16", IMGFMT_BGR16}, + {"BGR24", IMGFMT_BGR24}, + {"BGR32", IMGFMT_BGR32}, + {"RGB1", IMGFMT_RGB1}, + {"BGR1", IMGFMT_BGR1}, {"MPES", IMGFMT_MPEGPES}, {"ZRMJPEGNI", IMGFMT_ZRMJPEGNI}, |