IPB

Welcome Guest ( Log In | Register )

Is LAME reenterable?
Istrebitel
post Jul 12 2012, 16:03
Post #1





Group: Members
Posts: 54
Joined: 20-October 10
Member No.: 84756



Greetings.

I am experimenting with Lame from programming point of view, and having wierd results. I have a question - is LAME reenterable, meaning, does it store anything in its inner variables, and can i encode/decode multiple files at once (if i keep multiple global lame structure instances of course)
Go to the top of the page
+Quote Post
 
Start new topic
Replies
Istrebitel
post Jul 13 2012, 11:01
Post #2





Group: Members
Posts: 54
Joined: 20-October 10
Member No.: 84756



I found out, the decoder supplied with LAME was actually non-reentrable, not LAME encoder.

In layer3.c at 1645 it reads:

struct III_sideinfo sideinfo;

So, a global variable is declared, and if multiple decodings are attempted at once, chaos ensues.
Go to the top of the page
+Quote Post

Posts in this topic


Reply to this topicStart new topic
1 User(s) are reading this topic (1 Guests and 0 Anonymous Users)
0 Members:

 



RSS Lo-Fi Version Time is now: 22nd October 2014 - 03:07