diff options
author | 2004-10-04 19:50:40 +0000 | |
---|---|---|
committer | 2004-10-04 19:50:40 +0000 | |
commit | 756bffd08b55b1f6214ff098a022ab92fc43f43f (patch) | |
tree | 3821a3b4f525341f2dbbd36d738370b3f5a5ab6a | |
parent | 1fc371c73a9eb02413f3821f56c3175095236592 (diff) |
make use of new defines: 24 and 32bit integer types
git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@13553 b3059339-0415-0410-9bf9-f77b7e298cf2
-rw-r--r-- | libaf/af_mp.c | 16 |
1 files changed, 15 insertions, 1 deletions
diff --git a/libaf/af_mp.c b/libaf/af_mp.c index d5535acb34..50bbc90e2e 100644 --- a/libaf/af_mp.c +++ b/libaf/af_mp.c @@ -18,10 +18,22 @@ int af_format_decode(int ifmt) ofmt = AF_FORMAT_LE|AF_FORMAT_US; break; case(AFMT_U16_BE): ofmt = AF_FORMAT_BE|AF_FORMAT_US; break; + case(AFMT_S24_LE): + ofmt = AF_FORMAT_LE|AF_FORMAT_SI; break; + case(AFMT_S24_BE): + ofmt = AF_FORMAT_BE|AF_FORMAT_SI; break; + case(AFMT_U24_LE): + ofmt = AF_FORMAT_LE|AF_FORMAT_US; break; + case(AFMT_U24_BE): + ofmt = AF_FORMAT_BE|AF_FORMAT_US; break; case(AFMT_S32_LE): ofmt = AF_FORMAT_LE|AF_FORMAT_SI; break; case(AFMT_S32_BE): ofmt = AF_FORMAT_BE|AF_FORMAT_SI; break; + case(AFMT_U32_LE): + ofmt = AF_FORMAT_LE|AF_FORMAT_US; break; + case(AFMT_U32_BE): + ofmt = AF_FORMAT_BE|AF_FORMAT_US; break; case(AFMT_IMA_ADPCM): ofmt = AF_FORMAT_IMA_ADPCM; break; case(AFMT_MU_LAW): @@ -58,6 +70,7 @@ int af_format_encode(void* fmtp) switch(fmt->bps){ case 1: return AFMT_S8; case 2: return (fmt->format&AF_FORMAT_LE) ? AFMT_S16_LE : AFMT_S16_BE; + case 3: return (fmt->format&AF_FORMAT_LE) ? AFMT_S24_LE : AFMT_S24_BE; case 4: return (fmt->format&AF_FORMAT_LE) ? AFMT_S32_LE : AFMT_S32_BE; } } else { @@ -65,7 +78,8 @@ int af_format_encode(void* fmtp) switch(fmt->bps){ case 1: return AFMT_U8; case 2: return (fmt->format&AF_FORMAT_LE) ? AFMT_U16_LE : AFMT_U16_BE; -// case 4: return (fmt->format&AF_FORMAT_LE) ? AFMT_U32_LE : AFMT_U32_BE; + case 3: return (fmt->format&AF_FORMAT_LE) ? AFMT_U24_LE : AFMT_U24_BE; + case 4: return (fmt->format&AF_FORMAT_LE) ? AFMT_U32_LE : AFMT_U32_BE; } } } else { |