changeset 12142:73261fb64be5

inttypes
author alex
date Tue, 06 Apr 2004 16:15:57 +0000
parents fd203b7df912
children da228f2485d9
files libmpcodecs/ad_ffmpeg.c
diffstat 1 files changed, 1 insertions(+), 1 deletions(-) [+]
line wrap: on
line diff
--- 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(y<x) sh_audio->ds->buffer_pos+=y-x;  // put back data (HACK!)