[MPlayer-dev-eng] broken config parser?
Wojtek Kaniewski
wojtekka at bydg.pdi.net
Wed May 21 16:21:32 CEST 2003
while playing with -rawvideo, i noticed that i can't set colorspace with
command option. the default I420 works fine, but when i use ,,-rawvideo
on:y420:w=320:h=240'', mplayer says it doesn't know this format. in
libmpdemux/demux_rawvideo.c:39 there's:
// format:
{ "format", &format, CONF_TYPE_INT, 0, 0 , 0, NULL },
{ "y420", &format, CONF_TYPE_FLAG, 0, 0 , IMGFMT_I420, NULL },
{ "yv12", &format, CONF_TYPE_FLAG, 0, 0 , IMGFMT_YV12, NULL },
{ "yuy2", &format, CONF_TYPE_FLAG, 0, 0 , IMGFMT_YUY2, NULL },
{ "uyvy", &format, CONF_TYPE_FLAG, 0, 0 , IMGFMT_UYVY, NULL },
{ "y8", &format, CONF_TYPE_FLAG, 0, 0 , IMGFMT_Y8, NULL },
that afaik should set IMGFMT_ to ,,format''. but it doesn't. for
,,y420'' it sets it to 0x30323440 (IMGFMT_I420 is 0x30323449),
for ,,yv12'' format == 0x32315640 (IMGFMT_YV12 is 0x32315659) and
so on. it always sets the LSB to 0x40.
it is some bug in cfgparser.c or its misuse in demux_rawvideo.c?
regards,
wojtek
More information about the MPlayer-dev-eng
mailing list