Fix compilation after FFmpeg r22565.
[mplayer/glamo.git] / libmpcodecs / ad_internal.h
blob2a5dbc43ea701e6bf1455fd922231261f4d40620
1 /*
2 * This file is part of MPlayer.
4 * MPlayer is free software; you can redistribute it and/or modify
5 * it under the terms of the GNU General Public License as published by
6 * the Free Software Foundation; either version 2 of the License, or
7 * (at your option) any later version.
9 * MPlayer is distributed in the hope that it will be useful,
10 * but WITHOUT ANY WARRANTY; without even the implied warranty of
11 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
12 * GNU General Public License for more details.
14 * You should have received a copy of the GNU General Public License along
15 * with MPlayer; if not, write to the Free Software Foundation, Inc.,
16 * 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA.
19 #ifndef MPLAYER_AD_INTERNAL_H
20 #define MPLAYER_AD_INTERNAL_H
22 #include "codec-cfg.h"
23 #include "libaf/af_format.h"
25 #include "stream/stream.h"
26 #include "libmpdemux/demuxer.h"
27 #include "libmpdemux/stheader.h"
29 #include "ad.h"
31 extern int audio_output_channels;
32 static int init(sh_audio_t *sh);
33 static int preinit(sh_audio_t *sh);
34 static void uninit(sh_audio_t *sh);
35 static int control(sh_audio_t *sh,int cmd,void* arg, ...);
36 static int decode_audio(sh_audio_t *sh,unsigned char *buffer,int minlen,int maxlen);
38 #define LIBAD_EXTERN(x) const ad_functions_t mpcodecs_ad_##x = {\
39 &info,\
40 preinit,\
41 init,\
42 uninit,\
43 control,\
44 decode_audio\
47 #endif /* MPLAYER_AD_INTERNAL_H */