# HG changeset patch # User alex # Date 1081268157 0 # Node ID 73261fb64be5514480a8c4060ec318db6a5b79ab # Parent fd203b7df9126ae37fdde19ecb27c75aa30cd15c inttypes diff -r fd203b7df912 -r 73261fb64be5 libmpcodecs/ad_ffmpeg.c --- a/libmpcodecs/ad_ffmpeg.c Tue Apr 06 16:13:52 2004 +0000 +++ b/libmpcodecs/ad_ffmpeg.c Tue Apr 06 16:15:57 2004 +0000 @@ -143,7 +143,7 @@ int len2=0; int x=ds_get_packet(sh_audio->ds,&start); if(x<=0) break; // error - y=avcodec_decode_audio(sh_audio->context,(INT16*)buf,&len2,start,x); + y=avcodec_decode_audio(sh_audio->context,(int16_t*)buf,&len2,start,x); //printf("return:%d samples_out:%d bitstream_in:%d sample_sum:%d\n", y, len2, x, len); fflush(stdout); if(y<0){ mp_msg(MSGT_DECAUDIO,MSGL_V,"lavc_audio: error\n");break; } if(yds->buffer_pos+=y-x; // put back data (HACK!)