[MPlayer-users] [BUG] autodetect vobsub from movie filename always expects 3 letter extensions
Eduardo Pérez Ureta
eperez at it.uc3m.es
Sat May 15 16:23:29 CEST 2004
autodetect vobsub from movie filename always expects 3 letter extensions
As a result mplayer tries to open for a file like filename.rm:
filenam.ifo
I think this is the buggy code (from MPlayer-1.0pre4):
/* try to autodetect vobsub from movie filename ::atmos */
char *buf = malloc((strlen(filename)-3) * sizeof(char));
memset(buf,0,strlen(filename)-3); // make sure string is terminated
strncpy(buf, filename, strlen(filename)-4);
vo_vobsub=vobsub_open(buf,spudec_ifo,0,&vo_spudec);
free(buf);
Eduardo
More information about the MPlayer-users
mailing list