diff --git a/contrib/src/twolame/SHA512SUMS b/contrib/src/twolame/SHA512SUMS
index 18b339d30504a3a2e9ddb1b23221545cd3311531..41867591e4480f7853faebcda5cb43a2f5bb9493 100644
--- a/contrib/src/twolame/SHA512SUMS
+++ b/contrib/src/twolame/SHA512SUMS
@@ -1 +1 @@
-241ae5faebf05cb919959bb0545cb89e9b71cfb07f92a7118d864499ea4f0065ddaa646ab1482ffbcbca427d52c2436764074bd67fd19a1eb9979987f23163f7  twolame-0.3.13.tar.gz
+cc594bc8d2322922280f915a3c0aa52540cca0350d6498bc96f3f60fd6e53f951e775ea015a44bdb29ec883b46b31a0e5483f6a5c188b02e30008289273c7d03  twolame-0.4.0.tar.gz
diff --git a/contrib/src/twolame/rules.mak b/contrib/src/twolame/rules.mak
index 3ff3de64fabd8f12e4c2269e553557df84e65b11..554328d0d969cb99bfc56a595223bdc396725eeb 100644
--- a/contrib/src/twolame/rules.mak
+++ b/contrib/src/twolame/rules.mak
@@ -1,6 +1,6 @@
 # twolame
 
-TWOLAME_VERSION := 0.3.13
+TWOLAME_VERSION := 0.4.0
 TWOLAME_URL := $(SF)/twolame/twolame-$(TWOLAME_VERSION).tar.gz
 
 ifdef BUILD_ENCODERS