Color distortion with AVI (DivX) files

Sigmund Augdal sigmunau at stud.ntnu.no
Sun Jul 14 16:07:21 CEST 2002


On Sun, Jul 14, 2002 at 01:18:53PM +0200, Xavier MAILLARD wrote:
> Gildas Bazin <gbazin at netcourrier.com> disait récemment que :
> 
> > On Sunday 14 July 2002 08:16, Xavier MAILLARD wrote:
> >> Michael Flohr <flohr at itp.uni-hannover.de> disait récemment que :
> >> 
> >> > Suggestion: Would it be possible to get vlc to
> >> > report possible values for arguments for certain
> >> > switches (such as --deinterlace-mode mode) when
> >> > using a question mark or something like this, such
> >> > that "--deinterlace-mode ?" would give me the
> >> > names of the supported modes?
> >> 
> >> Yup this can be done. This should not be difficult. I will try to 
> >> elaborate that.
> >> 
> >
> > This feature is now available from the GTK or Gnome interface (only in the 
> > cvs version), so it should be quite easy to adapt this to the command line 
> > interface. You should look at config_LoadCmdLine() in 
> > src/misc/configuration.c. I'm just not sure what's the cleanest way to do 
> > it.
> Oops :)

This is one way to do it. Somebody with more experience with string
handling in c than me should review it before they commit it.


Sigmund

-------------- next part --------------
? patch
? misc/patch
Index: libvlc.c
===================================================================
RCS file: /var/cvs/videolan/vlc/src/libvlc.c,v
retrieving revision 1.13
diff -r1.13 libvlc.c
923,924c923,941
<                 psz_bra = " <"; psz_type = _("string"); psz_ket = ">";
<                 break;
---
>                 if( !p_item->ppsz_list )
>                 {
>                     psz_bra = " <"; psz_type = _("string"); psz_ket = ">";
>                     break;
>                 }
>                 else
>                 {
>                     psz_bra = " [";
>                     psz_type = malloc( 1000 );
>                     memset( psz_type, 0, 1000 );
>                     for( i=0; p_item->ppsz_list[i]; i++ )
>                     {
>                         strcat( psz_type, p_item->ppsz_list[i] );
>                         strcat( psz_type, "|" );
>                     }
>                     psz_type[ strlen( psz_type ) - 1 ] = '\0';
>                     psz_ket = "]";
>                     break;
>                 }
1009a1027,1030
>                 if ( p_item->ppsz_list )
>                 {
>                     free( psz_type );
>                 }


More information about the vlc mailing list