Since the libmpeg2 source code library is released under free and open source license it is legally redistributable. However, the MPEG-2 compression algorithm method is owned by the MPEG Licensing Authority and are in some countries protected by software patents. Absent such a licence from the MPEG Licensing Authority, it could possibly be illegal in certain countries to distribute compiled versions of libmpeg2 for the purpose of decoding MPEG-1 and/or MPEG-2 video streams. In February 2018, all MPEG-2 patents have expired for any country except Malaysia and the Philippines.1
"MPEG-2 Patent List" (PDF). Archived from the original (PDF) on 2011-04-05. Retrieved 2018-11-08. https://web.archive.org/web/20110405220357/http://www.mpegla.com/main/programs/m2/Documents/m2-att1.pdf ↩