changeset 1944:4d8123ae7b4b

Fixed vfwex section, null codec and other fourcc issues and improved codecs-in.html usability.
author atmos4
date Sun, 23 Sep 2001 20:40:16 +0000
parents 24c248fbdb0f
children 0f204bd39635
files DOCS/codecs-in.html codec-cfg.c
diffstat 2 files changed, 18 insertions(+), 10 deletions(-) [+]
line wrap: on
line diff
--- a/DOCS/codecs-in.html	Sun Sep 23 18:42:39 2001 +0000
+++ b/DOCS/codecs-in.html	Sun Sep 23 20:40:16 2001 +0000
@@ -5,12 +5,19 @@
 <BODY BGCOLOR=#FFFFFF text="#000000" link="#666666" vlink="#666666" alink="#666666" leftmargin="0" topmargin="0" marginwidth="0" marginheight="0">
 <table width=750 border="0">
   <tr> 
-    <td align=right> 
+    <td align="right"> 
       <p>&nbsp;</p>
 
-      <p><b><font face="Verdana, Arial, Helvetica, sans-serif" size="3">Status of codecs support</font></b></p>
-
-      <br><font face="Verdana, Arial, Helvetica, sans-serif" size="2">Video codecs:</font><br>
+      <p><b><font face="Verdana, Arial, Helvetica, sans-serif" size="2">Status of codecs support</font></b></p>
+    </td>
+  </tr>
+    <td>
+      <p><font face="Verdana, Arial, Helvetica, sans-serif" size="2"><a href="#vc">Video codecs</a><br><a href="#ac">Audio codecs</a><br></font></p>
+    </td>
+  </tr>
+  <tr> 
+    <td align="center"> 
+      <b><font face="Verdana, Arial, Helvetica, sans-serif" size="5"><a name="vc">Video codecs:</a></font></b><br><br>
 
       <table width="100%" border="1" cellspacing="0" cellpadding="5" bordercolor=#DDDDDD>
 
@@ -112,7 +119,7 @@
 
       </table>
 
-      <br><font face="Verdana, Arial, Helvetica, sans-serif" size="2">Audio codecs:</font><br>
+      <br><b><font face="Verdana, Arial, Helvetica, sans-serif" size="5"><a name="ac">Audio codecs:</a></font></b><br><br>
 
       <table width="100%" border="1" cellspacing="0" cellpadding="5" bordercolor=#DDDDDD>
 
--- a/codec-cfg.c	Sun Sep 23 18:42:39 2001 +0000
+++ b/codec-cfg.c	Sun Sep 23 20:40:16 2001 +0000
@@ -680,8 +680,8 @@
                 fprintf(f2,"%c",codec->driver==dshow?'+':'-'); break;
             case 'F':
                 for(d=0;d<CODECS_MAX_FOURCC;d++)
-                    if(codec->fourcc[d]!=0xFFFFFFFF)
-                        fprintf(f2,"%s%.4s",d?"<br>":"",codec->fourcc[d]<0x20202020?"-":(char*) &codec->fourcc[d]);
+                    if(!d || codec->fourcc[d]!=0xFFFFFFFF)
+                        fprintf(f2,"%s%.4s",d?"<br>":"",(codec->fourcc[d]==0xFFFFFFFF || codec->fourcc[d]<0x20202020)?!d?"-":"":(char*) &codec->fourcc[d]);
                 break;
             case 'f':
                 for(d=0;d<CODECS_MAX_FOURCC;d++)
@@ -727,6 +727,7 @@
         int nr_codecs;
         int win32=-1;
         int dshow=-1;
+        int win32ex=-1;
 
 	if (!(codecs = parse_codec_cfg("etc/codecs.conf")))
 		return 0;
@@ -757,7 +758,7 @@
                     // video
 		    cl = codecs[0];
 		    nr_codecs = nr_vcodecs;
-                    dshow=4;win32=2;
+                    dshow=4;win32=2;win32ex=6;
                 }
                 pos=ftell(f1);
                 for(i=0;i<nr_codecs;i++){
@@ -766,13 +767,13 @@
                     case 0:
                     case 5:
                         if(cl[i].status==CODECS_STATUS_WORKING)
-                            if(!(cl[i].driver==win32 || cl[i].driver==dshow))
+                            if(!(cl[i].driver==win32 || cl[i].driver==dshow || cl[i].driver==win32ex))
                                 parsehtml(f1,f2,&cl[i],section,dshow);
                         break;
                     case 1:
                     case 6:
                         if(cl[i].status==CODECS_STATUS_WORKING)
-                            if(cl[i].driver==win32 || cl[i].driver==dshow)
+                            if(cl[i].driver==win32 || cl[i].driver==dshow || cl[i].driver==win32ex)
                                 parsehtml(f1,f2,&cl[i],section,dshow);
                         break;
                     case 2: