summaryrefslogtreecommitdiffstats
path: root/audio/decode/ad.c
diff options
context:
space:
mode:
authorwm4 <wm4@nowhere>2013-07-22 14:41:56 +0200
committerwm4 <wm4@nowhere>2013-07-22 14:41:56 +0200
commitf86b94f9b4623baa999961681e44b9a838834de5 (patch)
treee06a91d29b16b735d0235acaa56a59a14e522c4b /audio/decode/ad.c
parent0b160e125723baa42aa3e880945817e518946bd2 (diff)
downloadmpv-f86b94f9b4623baa999961681e44b9a838834de5.tar.bz2
mpv-f86b94f9b4623baa999961681e44b9a838834de5.tar.xz
audio/decode: remove macro crap
Declare decoders directly, instead of using the LIBAD_EXTERN macro. This is simpler (no weird magic) and more extensible.
Diffstat (limited to 'audio/decode/ad.c')
-rw-r--r--audio/decode/ad.c46
1 files changed, 0 insertions, 46 deletions
diff --git a/audio/decode/ad.c b/audio/decode/ad.c
deleted file mode 100644
index 846cd146d1..0000000000
--- a/audio/decode/ad.c
+++ /dev/null
@@ -1,46 +0,0 @@
-/*
- * audio decoder interface
- *
- * This file is part of MPlayer.
- *
- * MPlayer is free software; you can redistribute it and/or modify
- * it under the terms of the GNU General Public License as published by
- * the Free Software Foundation; either version 2 of the License, or
- * (at your option) any later version.
- *
- * MPlayer is distributed in the hope that it will be useful,
- * but WITHOUT ANY WARRANTY; without even the implied warranty of
- * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
- * GNU General Public License for more details.
- *
- * You should have received a copy of the GNU General Public License along
- * with MPlayer; if not, write to the Free Software Foundation, Inc.,
- * 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA.
- */
-
-#include <stdio.h>
-#include <stdlib.h>
-#include <string.h>
-
-#include "config.h"
-
-#include "stream/stream.h"
-#include "demux/demux.h"
-#include "demux/stheader.h"
-#include "ad.h"
-
-/* Missed vorbis, mad, dshow */
-
-extern const ad_functions_t mpcodecs_ad_mpg123;
-extern const ad_functions_t mpcodecs_ad_lavc;
-extern const ad_functions_t mpcodecs_ad_spdif;
-
-const ad_functions_t * const mpcodecs_ad_drivers[] =
-{
-#ifdef CONFIG_MPG123
- &mpcodecs_ad_mpg123,
-#endif
- &mpcodecs_ad_lavc,
- &mpcodecs_ad_spdif,
- NULL
-};