I found some minor bugs in Lame 3.95.1 related to mp3 decoding, so here are
my patch suggestions.

Patch 1: function is_syncword_mp123() (frontend/get_audio.c) line 1381
(I know it has been corrected in CVS already, but anyway...)
---
#ifndef USE_LAYER_1
    if ((p[1] & 0x06) == 0x06)
        return 0; /* layer1 is not supported */
#endif
#ifndef USE_LAYER_2
    if ((p[1] & 0x06) == 0x04)
        return 0; /* layer2 is not supported */
#endif
---

Patch 2: function lame_decode_initfile() (frontend/get_audio.c) line 1458
---
    if ((buf[2] & 0xf0)==0) { /* third byte, but index is zero-based */
        fprintf(stderr,"Input file is freeformat.\n");
        freeformat = 1;
    }
---

Patch 3: function decodeMP3_clipchoise() (mpglib/interface.c) line 345
---
        if(in && isize) { /* do not add buffer if length is zero */
                if(addbuf(mp,in,isize) == NULL) {
                        return MP3_ERR;
                }
        }
---

Regards,
Dmitriy S.

_______________________________________________
mp3encoder mailing list
[EMAIL PROTECTED]
http://minnie.tuhs.org/mailman/listinfo/mp3encoder

Reply via email to