Mercurial > mplayer.hg
comparison libmpcodecs/ad_ffmpeg.c @ 8101:1bce6e325946
MACE fix
author | arpi |
---|---|
date | Mon, 04 Nov 2002 18:46:53 +0000 |
parents | 2a5def1e08d7 |
children | d9b2b39e5c06 |
comparison
equal
deleted
inserted
replaced
8100:fd0da9a7d2e3 | 8101:1bce6e325946 |
---|---|
80 if (avcodec_open(lavc_context, lavc_codec) < 0) { | 80 if (avcodec_open(lavc_context, lavc_codec) < 0) { |
81 mp_msg(MSGT_DECAUDIO,MSGL_ERR, MSGTR_CantOpenCodec); | 81 mp_msg(MSGT_DECAUDIO,MSGL_ERR, MSGTR_CantOpenCodec); |
82 return 0; | 82 return 0; |
83 } | 83 } |
84 mp_msg(MSGT_DECAUDIO,MSGL_V,"INFO: libavcodec init OK!\n"); | 84 mp_msg(MSGT_DECAUDIO,MSGL_V,"INFO: libavcodec init OK!\n"); |
85 | |
86 // printf("\nFOURCC: 0x%X\n",sh_audio->format); | |
87 if(sh_audio->format==0x3343414D){ | |
88 // MACE 3:1 | |
89 sh_audio->ds->ss_div = 2*3; // 1 samples/packet | |
90 sh_audio->ds->ss_mul = 2*1; // 1 bytes/packet | |
91 } else | |
92 if(sh_audio->format==0x3643414D){ | |
93 // MACE 6:1 | |
94 sh_audio->ds->ss_div = 2*6; // 1 samples/packet | |
95 sh_audio->ds->ss_mul = 2*1; // 1 bytes/packet | |
96 } | |
85 | 97 |
86 // Decode at least 1 byte: (to get header filled) | 98 // Decode at least 1 byte: (to get header filled) |
87 x=decode_audio(sh_audio,sh_audio->a_buffer,1,sh_audio->a_buffer_size); | 99 x=decode_audio(sh_audio,sh_audio->a_buffer,1,sh_audio->a_buffer_size); |
88 if(x>0) sh_audio->a_buffer_len=x; | 100 if(x>0) sh_audio->a_buffer_len=x; |
89 | 101 |