Mercurial > mplayer.hg
comparison dec_audio.c @ 2424:ff50f2a576f2
ima4 type warning fixed
author | arpi |
---|---|
date | Tue, 23 Oct 2001 14:11:53 +0000 |
parents | 311676805f20 |
children | b02c2679e5a9 |
comparison
equal
deleted
inserted
replaced
2423:e839eec368f9 | 2424:ff50f2a576f2 |
---|---|
797 break; | 797 break; |
798 } | 798 } |
799 case AFM_IMA4: // IMA-ADPCM 4:1 audio codec: | 799 case AFM_IMA4: // IMA-ADPCM 4:1 audio codec: |
800 { unsigned char ibuf[IMA4_BLOCK_SIZE]; // bytes / frame | 800 { unsigned char ibuf[IMA4_BLOCK_SIZE]; // bytes / frame |
801 if(demux_read_data(sh_audio->ds,ibuf,IMA4_BLOCK_SIZE)!=IMA4_BLOCK_SIZE) break; // EOF | 801 if(demux_read_data(sh_audio->ds,ibuf,IMA4_BLOCK_SIZE)!=IMA4_BLOCK_SIZE) break; // EOF |
802 len=2*ima4_decode_block(buf,ibuf,2*IMA4_SAMPLES_PER_BLOCK); | 802 len=2*ima4_decode_block((unsigned short*)buf,ibuf,2*IMA4_SAMPLES_PER_BLOCK); |
803 break; | 803 break; |
804 } | 804 } |
805 case AFM_AC3: // AC3 decoder | 805 case AFM_AC3: // AC3 decoder |
806 //printf("{1:%d}",avi_header.idx_pos);fflush(stdout); | 806 //printf("{1:%d}",avi_header.idx_pos);fflush(stdout); |
807 if(!sh_audio->ac3_frame) sh_audio->ac3_frame=ac3_decode_frame(); | 807 if(!sh_audio->ac3_frame) sh_audio->ac3_frame=ac3_decode_frame(); |