[MPlayer-users] small bug in libvo/vo_aa.c

Axel Gordon Grossklaus 6grosskl at informatik.uni-hamburg.de
Mon Dec 9 18:04:02 CET 2002


moin,

there seems to be a bug in libvo/vo_aa.c (line 704 in cvs
version 1.36):

sprintf (fname, "/dev/vcsa%2.2i", vt);

this causes mplayer to generate device-names
with leading zeros i.e. /dev/vcsa01 instead
of /dev/vcsa1
if mplayer is run as root, a new file is 
created under /dev.

simply 
sprintf (fname, "/dev/vcsa%i", vt);
would be better, i think.

unfortunately, the code simply opens the device
in write-mode and does not check if it exists and
if it is a device. maybe it would 
be a good idea to add this check.


tty, axel




More information about the MPlayer-users mailing list