From 507121f7fe2d170dd8db99d3112602036ddef718 Mon Sep 17 00:00:00 2001 From: alex Date: Mon, 27 Dec 2004 17:30:15 +0000 Subject: removing AFMT_ dependancy git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@14246 b3059339-0415-0410-9bf9-f77b7e298cf2 --- libmpcodecs/ad_dvdpcm.c | 10 ++++------ 1 file changed, 4 insertions(+), 6 deletions(-) (limited to 'libmpcodecs/ad_dvdpcm.c') diff --git a/libmpcodecs/ad_dvdpcm.c b/libmpcodecs/ad_dvdpcm.c index acfbc7855a..1962594961 100644 --- a/libmpcodecs/ad_dvdpcm.c +++ b/libmpcodecs/ad_dvdpcm.c @@ -6,7 +6,6 @@ #include "mp_msg.h" #include "help_mp.h" #include "ad_internal.h" -#include "../libaf/af_format.h" static ad_info_t info = { @@ -35,26 +34,25 @@ static int init(sh_audio_t *sh) } switch ((h >> 6) & 3) { case 0: - sh->sample_format = AFMT_S16_BE; + sh->sample_format = AF_FORMAT_S16_BE; sh->samplesize = 2; break; case 1: mp_msg(MSGT_DECAUDIO, MSGL_INFO, MSGTR_SamplesWanted); sh->i_bps = sh->channels * sh->samplerate * 5 / 2; case 2: - sh->sample_format = AFMT_AF_FLAGS | AF_FORMAT_I | - AF_FORMAT_BE | AF_FORMAT_SI; + sh->sample_format = AF_FORMAT_S24_BE; sh->samplesize = 3; break; default: - sh->sample_format = AFMT_S16_BE; + sh->sample_format = AF_FORMAT_S16_BE; sh->samplesize = 2; } } else { // use defaults: sh->channels=2; sh->samplerate=48000; - sh->sample_format = AFMT_S16_BE; + sh->sample_format = AF_FORMAT_S16_BE; sh->samplesize = 2; } if (!sh->i_bps) -- cgit v1.2.3