Or you just delegate to the OS, which either already ships a licensed copy of the codec (Windows and OS X) or has users who ignore patents and install unlicensed codecs (Linux). By doing this you incur a whopping license fee of... zero dollars, because licensing becomes someone else's problem.