[vlc-commits] commit: Fix A/52 decoding when liba52 is not present ( Rémi Denis-Courmont )

git at videolan.org git at videolan.org
Fri Apr 16 16:59:40 CEST 2010


vlc/vlc-1.0 | branch: master | Rémi Denis-Courmont <remi at remlab.net> | Mon Dec 14 20:41:47 2009 +0200| [e960176a2182f974d57baede053f9e96954c5ef9] | committer: Rémi Denis-Courmont 

Fix A/52 decoding when liba52 is not present

62eefa47e9195d1f4f6e99eca21c09f85788f913 introduced the same hack for
DTS already a while ago. This allows falling back to lavc gracefully.
(cherry picked from commit f3f46a25ff6009fbfd91e2539eec3a371a538d97)

> http://git.videolan.org/gitweb.cgi/vlc/vlc-1.0.git/?a=commit;h=e960176a2182f974d57baede053f9e96954c5ef9
---

 modules/codec/a52.c |    3 +++
 1 files changed, 3 insertions(+), 0 deletions(-)

diff --git a/modules/codec/a52.c b/modules/codec/a52.c
index 62f427d..ac12078 100644
--- a/modules/codec/a52.c
+++ b/modules/codec/a52.c
@@ -159,6 +159,9 @@ static int OpenCommon( vlc_object_t *p_this, bool b_packetizer )
 
 static int OpenDecoder( vlc_object_t *p_this )
 {
+    /* HACK: Don't use this codec if we don't have an dts audio filter */
+    if( !module_exists( "a52tofloat32" ) )
+        return VLC_EGENERIC;
     return OpenCommon( p_this, false );
 }
 



More information about the vlc-commits mailing list