[Mplayer-cvslog] CVS: main codec-cfg.c,1.94,1.95 codec-cfg.h,1.64,1.65
Arpi of Ize
arpi at mplayerhq.hu
Thu Sep 26 03:28:35 CEST 2002
Update of /cvsroot/mplayer/main
In directory mail:/var/tmp.root/cvs-serv21890
Modified Files:
codec-cfg.c codec-cfg.h
Log Message:
new func: select_codec() - disables codec by name
Index: codec-cfg.c
===================================================================
RCS file: /cvsroot/mplayer/main/codec-cfg.c,v
retrieving revision 1.94
retrieving revision 1.95
diff -u -r1.94 -r1.95
--- codec-cfg.c 31 Aug 2002 13:22:03 -0000 1.94
+++ codec-cfg.c 26 Sep 2002 01:28:32 -0000 1.95
@@ -749,6 +749,23 @@
return NULL;
}
+void select_codec(char* codecname,int audioflag){
+ int i;
+ codecs_t *c;
+// printf("select_codec('%s')\n",codecname);
+ if (audioflag) {
+ i = nr_acodecs;
+ c = audio_codecs;
+ } else {
+ i = nr_vcodecs;
+ c = video_codecs;
+ }
+ if(i)
+ for (/* NOTHING */; i--; c++)
+ if(!strcmp(c->name,codecname))
+ c->flags|=CODECS_FLAG_SELECTED;
+}
+
void codecs_reset_selection(int audioflag){
int i;
codecs_t *c;
Index: codec-cfg.h
===================================================================
RCS file: /cvsroot/mplayer/main/codec-cfg.h,v
retrieving revision 1.64
retrieving revision 1.65
diff -u -r1.64 -r1.65
--- codec-cfg.h 10 Sep 2002 20:07:34 -0000 1.64
+++ codec-cfg.h 26 Sep 2002 01:28:32 -0000 1.65
@@ -61,6 +61,7 @@
codecs_t* find_video_codec(unsigned int fourcc, unsigned int *fourccmap, codecs_t *start);
codecs_t* find_audio_codec(unsigned int fourcc, unsigned int *fourccmap, codecs_t *start);
codecs_t* find_codec(unsigned int fourcc,unsigned int *fourccmap,codecs_t *start,int audioflag);
+void select_codec(char* codecname,int audioflag);
void list_codecs(int audioflag);
void codecs_reset_selection(int audioflag);
More information about the MPlayer-cvslog
mailing list