exporting patch: # HG changeset patch # User nikita # Date 1290454145 -3600 # Node ID 890bc245111618cf4aad84141bb76d553d56f190 # Parent f2520466a4853a85be35fd7ea3ab8153c0611f4c use fmtp_get_value for ptime in msspeex.c, also the separator must be '=' and not ':' diff -r f2520466a485 -r 890bc2451116 src/msspeex.c --- a/src/msspeex.c Fri Oct 08 15:47:08 2010 +0200 +++ b/src/msspeex.c Mon Nov 22 20:29:05 2010 +0100 @@ -266,8 +266,14 @@ const char *fmtp=(const char *)arg; SpeexEncState *s=(SpeexEncState*)f->data; - if (strstr(fmtp, "ptime:")) - enc_add_attr(f, arg); + memset(buf, '\0', sizeof(buf)); + if (fmtp_get_value(fmtp,"ptime",buf,sizeof(buf))){ + s->ptime=atoi(buf); + //if the ptime is not a mulptiple of 20, go to the next multiple + if (s->ptime%20) + s->ptime = s->ptime - s->ptime%20 + 20; + ms_message("MSSpeexEnc: got ptime=%i",s->ptime); + } memset(buf, '\0', sizeof(buf)); fmtp_get_value(fmtp, "vbr", buf, sizeof(buf));