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

git version control git at videolan.org
Mon Dec 14 19:42:52 CET 2009


vlc | branch: master | Rémi Denis-Courmont <remi at remlab.net> | Mon Dec 14 20:41:47 2009 +0200| [f3f46a25ff6009fbfd91e2539eec3a371a538d97] | 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.

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

 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 d786d7c..23803b8 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-devel mailing list