[vorbis-dev] Standard Open Source Bug detected, try murksaround ...

Gian-Carlo Pascutto gcp at sjeng.org
Fri Aug 10 11:45:11 PDT 2001



When using the abx utility that is in LAME's
misc dir, trying it on an ogg (with ogg123) gives the
following output:

Standard Open Source Bug detected, try murksaround ...

(ogg123 is decoding to stdout)

IIRC this also happened with older mpg123's but
no longer with the latest release. Latest ogg123 from
CVS still gives it though. Someone stole code but
forgot to check for fixes? :)

I've put the code which produces this below. It looks
as if an entry in the headers is wrong:

---------------------------------------------------------
    fprintf (stderr, " ..." );
    fread ( header, sizeof(*header), sizeof(header)/sizeof(*header), fp );
    switch ( header[11] ) {
        case 2:
            *len = fread ( buff, sizeof(stereo_t), maxlen, fp );
            break;
        case 1:
            *len = fread ( buff, sizeof(sample_t), maxlen, fp );
            for ( i = *len; i-- > 0; )
                buff[i][0] = buff[i][1] = ((sample_t*)buff) [i];
            break;
        case 0:
            fprintf (stderr, "\b\b\b\b, Standard Open Source Bug detected,
try murksaround ..." );
            *len = fread ( buff, sizeof(stereo_t), maxlen, fp );
            header[11] =     2;
            header[12] = 65534;  /* use that of the other channel */
            break;
        default:
            fprintf (stderr, "Only 1 or 2 channels are supported, not
%u\n", header[11] );
            pclose (fp);
            return -1;
    }
----------------------------------------------------------


-- 
GCP

--- >8 ----
List archives:  http://www.xiph.org/archives/
Ogg project homepage: http://www.xiph.org/ogg/
To unsubscribe from this list, send a message to 'vorbis-dev-request at xiph.org'
containing only the word 'unsubscribe' in the body.  No subject is needed.
Unsubscribe messages sent to the list will be ignored/filtered.




More information about the Vorbis-dev mailing list