Hi!

I tried to use the feature of CodecInfo::match(..) to iterate through
all matching codecs/plugins.

Here's a fix relative to 0.7.22 to make this actually work.  (The
problem was, that when the start-codec matches the fourcc, the loop
would stop immediately, returning the start-codec.  Usually this isn't
what you want.)


diff -c avifile0.7-0.7.22/lib/codeckeeper.cpp 
avifile0.7-0.7.22-olmur/lib/codeckeeper.cpp
*** avifile0.7-0.7.22/lib/codeckeeper.cpp       Fri Nov 29 14:09:39 2002
--- avifile0.7-0.7.22-olmur/lib/codeckeeper.cpp Sun Dec 29 15:35:40 2002
***************
*** 820,828 ****
      {
        if (start)
        {
!           if (&c[i] != start)
!               continue;
!           start = 0;
        }

        CodecInfo& ci = c[i];
--- 820,828 ----
      {
        if (start)
        {
!           if (&c[i] == start)
!               start = 0;
!           continue;
        }

        CodecInfo& ci = c[i];



Bye,
Michael
-- 
PGP Key on Servers -- Finger-Print: 51ECA5D2 13938F91 CBF76CC4 F8B5B67C

It was a book to kill time for those who liked it better dead.



_______________________________________________
Avifile mailing list
[EMAIL PROTECTED]
http://prak.org/mailman/listinfo/avifile

Reply via email to