1
  
2
  
3
  
4
  
5
  
6
  
7
  
8
  
9
  
10
  
11
  
12
  
13
  
14
  
/* -*- Mode: pike; tab-width: 8; c-basic-offset: 3; c-offsets-alist:((substatement-open . 0)); -*- */ 
 
void main() 
{ 
    string sc = Stdio.read_file(getenv("HOME")+"/.aido/mplayer-codecs.conf" ); 
    string a, b; 
    if( sscanf( sc, "%svideocodec mpegpes%*sout MPES%s", a, b ) == 3 ) 
    { 
        sc = a + b; 
        Stdio.write_file( getenv("HOME") + "/.aido/mplayer-codecs.conf", sc ); 
    } 
}