mirror of
https://github.com/mpv-player/mpv
synced 2025-01-09 00:19:32 +00:00
massive attack: mp_msg printf format fixes
git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@17367 b3059339-0415-0410-9bf9-f77b7e298cf2
This commit is contained in:
parent
b0beff56ac
commit
2601de4120
@ -257,7 +257,7 @@ static char help_text[]=
|
||||
#define MSGTR_AudioStreamResult "\nAudio stream: %8.3f kbit/s (%d B/s) size: %d bytes %5.3f secs\n"
|
||||
#define MSGTR_OpenedStream "success: format: %d data: 0x%X - 0x%x\n"
|
||||
#define MSGTR_VCodecFramecopy "videocodec: framecopy (%dx%d %dbpp fourcc=%x)\n"
|
||||
#define MSGTR_ACodecFramecopy "audiocodec: framecopy (format=%x chans=%d rate=%ld bits=%d B/s=%ld sample-%ld)\n"
|
||||
#define MSGTR_ACodecFramecopy "audiocodec: framecopy (format=%x chans=%d rate=%d bits=%d B/s=%d sample-%d)\n"
|
||||
#define MSGTR_CBRPCMAudioSelected "CBR PCM audio selected\n"
|
||||
#define MSGTR_MP3AudioSelected "MP3 audio selected\n"
|
||||
#define MSGTR_CannotAllocateBytes "Couldn't allocate %d bytes\n"
|
||||
@ -267,7 +267,7 @@ static char help_text[]=
|
||||
#define MSGTR_LimitingAudioPreload "Limiting audio preload to 0.4s\n"
|
||||
#define MSGTR_IncreasingAudioDensity "Increasing audio density to 4\n"
|
||||
#define MSGTR_ZeroingAudioPreloadAndMaxPtsCorrection "Forcing audio preload to 0, max pts correction to 0\n"
|
||||
#define MSGTR_CBRAudioByterate "\n\nCBR audio: %ld bytes/sec, %d bytes/block\n"
|
||||
#define MSGTR_CBRAudioByterate "\n\nCBR audio: %d bytes/sec, %d bytes/block\n"
|
||||
#define MSGTR_LameVersion "LAME version %s (%s)\n\n"
|
||||
#define MSGTR_InvalidBitrateForLamePreset "Error: The bitrate specified is out of the valid range for this preset\n"\
|
||||
"\n"\
|
||||
@ -580,7 +580,7 @@ static char help_text[]=
|
||||
#define MSGTR_LeaveTelecineMode "\ndemux_mpg: 30000/1001fps NTSC content detected, switching framerate.\n"
|
||||
#define MSGTR_EnterTelecineMode "\ndemux_mpg: 24000/1001fps progressive NTSC content detected, switching framerate.\n"
|
||||
|
||||
#define MSGTR_CacheFill "\rCache fill: %5.2f%% (%d bytes) "
|
||||
#define MSGTR_CacheFill "\rCache fill: %5.2f%% (%"PRId64" bytes) "
|
||||
#define MSGTR_NoBindFound "No bind found for key '%s'"
|
||||
#define MSGTR_FailedToOpen "Failed to open %s\n"
|
||||
|
||||
@ -1209,7 +1209,7 @@ static char help_text[]=
|
||||
#define MSGTR_MPDEMUX_AIALSA_UnavailableAccessType "Access type not available\n"
|
||||
#define MSGTR_MPDEMUX_AIALSA_UnavailableSampleFmt "Sample format not available\n"
|
||||
#define MSGTR_MPDEMUX_AIALSA_UnavailableChanCount "Channel count not available - reverting to default: %d\n"
|
||||
#define MSGTR_MPDEMUX_AIALSA_CannotInstallHWParams "Unable to install hw params:"
|
||||
#define MSGTR_MPDEMUX_AIALSA_CannotInstallHWParams "Unable to install hw params: %s"
|
||||
#define MSGTR_MPDEMUX_AIALSA_PeriodEqualsBufferSize "Can't use period equal to buffer size (%u == %lu)\n"
|
||||
#define MSGTR_MPDEMUX_AIALSA_CannotInstallSWParams "Unable to install sw params:\n"
|
||||
#define MSGTR_MPDEMUX_AIALSA_ErrorOpeningAudio "Error opening audio: %s\n"
|
||||
@ -1313,7 +1313,7 @@ static char help_text[]=
|
||||
#define MSGTR_MPDEMUX_AVIHDR_RegeneratingKeyfTableForMPEG4 "Regenerating keyframe table for MPEG4 video\n"
|
||||
#define MSGTR_MPDEMUX_AVIHDR_FoundWaveFmt "Found 'wf', %d bytes of %d\n"
|
||||
#define MSGTR_MPDEMUX_AVIHDR_FoundAVIV2Header "AVI: dmlh found (size=%d) (total_frames=%d)\n"
|
||||
#define MSGTR_MPDEMUX_AVIHDR_ReadingIndexBlockChunksForFrames "Reading INDEX block, %d chunks for %ld frames (fpos=%p)\n"
|
||||
#define MSGTR_MPDEMUX_AVIHDR_ReadingIndexBlockChunksForFrames "Reading INDEX block, %d chunks for %d frames (fpos=%"PRId64")\n"
|
||||
#define MSGTR_MPDEMUX_AVIHDR_AdditionalRIFFHdr "Additional RIFF header...\n"
|
||||
#define MSGTR_MPDEMUX_AVIHDR_WarnNotExtendedAVIHdr "** warning: this is no extended AVI header..\n"
|
||||
#define MSGTR_MPDEMUX_AVIHDR_BrokenChunk "Broken chunk? chunksize=%d (id=%.4s)\n"
|
||||
@ -1338,7 +1338,7 @@ static char help_text[]=
|
||||
|
||||
#define MSGTR_MPDEMUX_CDDA_CantOpenCDDADevice "Can't open CDDA device.\n"
|
||||
#define MSGTR_MPDEMUX_CDDA_CantOpenDisc "Can't open disc.\n"
|
||||
#define MSGTR_MPDEMUX_CDDA_AudioCDFoundWithNTracks "Found audio CD with %d tracks.\n"
|
||||
#define MSGTR_MPDEMUX_CDDA_AudioCDFoundWithNTracks "Found audio CD with %ld tracks.\n"
|
||||
|
||||
// cddb.c
|
||||
|
||||
|
@ -182,7 +182,7 @@ static int control(struct af_instance_s* af, int cmd, void* arg)
|
||||
if((s->setup & RSMP_MASK) == RSMP_LIN){
|
||||
s->pt=0LL;
|
||||
s->step=((uint64_t)n->rate<<STEPACCURACY)/(uint64_t)af->data->rate+1LL;
|
||||
af_msg(AF_MSG_DEBUG0,"[resample] Linear interpolation step: 0x%016X.\n",
|
||||
af_msg(AF_MSG_DEBUG0,"[resample] Linear interpolation step: 0x%016"PRIX64".\n",
|
||||
s->step);
|
||||
af->mul.n = af->data->rate;
|
||||
af->mul.d = n->rate;
|
||||
|
@ -610,11 +610,11 @@ static int init(int rate_hz, int channels, int format, int flags)
|
||||
if ((err = snd_pcm_hw_params_set_period_size_near(alsa_handler, alsa_hwparams,
|
||||
&chunk_size, &dir)) < 0)
|
||||
{
|
||||
mp_msg(MSGT_AO,MSGL_ERR,"alsa-init: unable to set periodsize(%d): %s\n",
|
||||
mp_msg(MSGT_AO,MSGL_ERR,"alsa-init: unable to set periodsize(%ld): %s\n",
|
||||
chunk_size, snd_strerror(err));
|
||||
}
|
||||
else {
|
||||
mp_msg(MSGT_AO,MSGL_V,"alsa-init: chunksize set to %i\n", chunk_size);
|
||||
mp_msg(MSGT_AO,MSGL_V,"alsa-init: chunksize set to %li\n", chunk_size);
|
||||
}
|
||||
if ((err = snd_pcm_hw_params_set_periods_near(alsa_handler, alsa_hwparams,
|
||||
&alsa_fragcount, &dir)) < 0) {
|
||||
|
@ -153,7 +153,7 @@ static void uninit(sh_audio_t *sh)
|
||||
case ACMERR_NOTPOSSIBLE:
|
||||
return;
|
||||
default:
|
||||
mp_msg(MSGT_WIN32, MSGL_WARN, "ACM_Decoder: unknown error occurred: %d\n", ret);
|
||||
mp_msg(MSGT_WIN32, MSGL_WARN, "ACM_Decoder: unknown error occurred: %ld\n", ret);
|
||||
return;
|
||||
}
|
||||
|
||||
@ -189,7 +189,7 @@ static int decode_audio(sh_audio_t *sh_audio,unsigned char *buf,int minlen,int m
|
||||
acm_context_t *priv = sh_audio->context;
|
||||
|
||||
acmStreamSize(priv->handle, len, &srcsize, ACM_STREAMSIZEF_DESTINATION);
|
||||
mp_msg(MSGT_WIN32,MSGL_DBG3,"acm says: srcsize=%ld (buffsize=%d) out_size=%d\n",srcsize,sh_audio->a_in_buffer_size,len);
|
||||
mp_msg(MSGT_WIN32,MSGL_DBG3,"acm says: srcsize=%ld (buffsize=%d) out_size=%ld\n",srcsize,sh_audio->a_in_buffer_size,len);
|
||||
|
||||
if(srcsize<sh_audio->wf->nBlockAlign){
|
||||
srcsize=sh_audio->wf->nBlockAlign;
|
||||
@ -204,7 +204,7 @@ static int decode_audio(sh_audio_t *sh_audio,unsigned char *buf,int minlen,int m
|
||||
demux_read_data(sh_audio->ds,&sh_audio->a_in_buffer[sh_audio->a_in_buffer_len],
|
||||
srcsize-sh_audio->a_in_buffer_len);
|
||||
}
|
||||
mp_msg(MSGT_WIN32,MSGL_DBG3,"acm convert %d -> %d bytes\n",sh_audio->a_in_buffer_len,len);
|
||||
mp_msg(MSGT_WIN32,MSGL_DBG3,"acm convert %d -> %ld bytes\n",sh_audio->a_in_buffer_len,len);
|
||||
memset(&ash, 0, sizeof(ash));
|
||||
ash.cbStruct=sizeof(ash);
|
||||
ash.fdwStatus=0;
|
||||
@ -229,7 +229,7 @@ static int decode_audio(sh_audio_t *sh_audio,unsigned char *buf,int minlen,int m
|
||||
}
|
||||
// return -1;
|
||||
}
|
||||
mp_msg(MSGT_WIN32,MSGL_DBG2,"acm converted %d -> %d\n",ash.cbSrcLengthUsed,ash.cbDstLengthUsed);
|
||||
mp_msg(MSGT_WIN32,MSGL_DBG2,"acm converted %ld -> %ld\n",ash.cbSrcLengthUsed,ash.cbDstLengthUsed);
|
||||
if(ash.cbSrcLengthUsed>=sh_audio->a_in_buffer_len){
|
||||
sh_audio->a_in_buffer_len=0;
|
||||
} else {
|
||||
|
@ -151,7 +151,7 @@ static int init(sh_audio_t *sh)
|
||||
return 0;
|
||||
} else {
|
||||
mp_msg(MSGT_DECAUDIO,MSGL_V,"FAAD: Decoder init done (%dBytes)!\n", sh->a_in_buffer_len); // XXX: remove or move to debug!
|
||||
mp_msg(MSGT_DECAUDIO,MSGL_V,"FAAD: Negotiated samplerate: %dHz channels: %d\n", faac_samplerate, faac_channels);
|
||||
mp_msg(MSGT_DECAUDIO,MSGL_V,"FAAD: Negotiated samplerate: %ldHz channels: %d\n", faac_samplerate, faac_channels);
|
||||
sh->channels = faac_channels;
|
||||
if (audio_output_channels <= 2) sh->channels = faac_channels > 1 ? 2 : 1;
|
||||
sh->samplerate = faac_samplerate;
|
||||
@ -266,7 +266,7 @@ static int decode_audio(sh_audio_t *sh,unsigned char *buf,int minlen,int maxlen)
|
||||
mp_msg(MSGT_DECAUDIO,MSGL_DBG2,"FAAD: Decoded zero samples!\n");
|
||||
} else {
|
||||
/* XXX: samples already multiplied by channels! */
|
||||
mp_msg(MSGT_DECAUDIO,MSGL_DBG2,"FAAD: Successfully decoded frame (%d Bytes)!\n",
|
||||
mp_msg(MSGT_DECAUDIO,MSGL_DBG2,"FAAD: Successfully decoded frame (%ld Bytes)!\n",
|
||||
sh->samplesize*faac_finfo.samples);
|
||||
memcpy(buf+len,faac_sample_buffer, sh->samplesize*faac_finfo.samples);
|
||||
last_dec_len = sh->samplesize*faac_finfo.samples;
|
||||
|
@ -128,7 +128,7 @@ static int init(sh_audio_t *sh)
|
||||
op.packet = headers[i];
|
||||
op.b_o_s = (i == 0);
|
||||
if(vorbis_synthesis_headerin(&ov->vi,&vc,&op) <0) {
|
||||
mp_msg(MSGT_DECAUDIO,MSGL_ERR,"OggVorbis: header n. %d broken! len=%d\n", i, op.bytes);
|
||||
mp_msg(MSGT_DECAUDIO,MSGL_ERR,"OggVorbis: header n. %d broken! len=%ld\n", i, op.bytes);
|
||||
ERROR();
|
||||
}
|
||||
if(i == 2) {
|
||||
|
@ -122,7 +122,7 @@ int mpae_init_faac(audio_encoder_t *encoder)
|
||||
mp_msg(MSGT_MENCODER, MSGL_FATAL, "AE_FAAC, couldn't init, exit\n");
|
||||
return 0;
|
||||
}
|
||||
mp_msg(MSGT_MENCODER, MSGL_V, "AE_FAAC, sample_input: %u, max_bytes_output: %u\n", samples_input, max_bytes_output);
|
||||
mp_msg(MSGT_MENCODER, MSGL_V, "AE_FAAC, sample_input: %lu, max_bytes_output: %lu\n", samples_input, max_bytes_output);
|
||||
config = faacEncGetCurrentConfiguration(faac);
|
||||
if(!config)
|
||||
{
|
||||
|
@ -152,7 +152,7 @@ static int init(sh_video_t *sh){
|
||||
|
||||
result=InitializeQTML(6+16);
|
||||
// result=InitializeQTML(0);
|
||||
mp_msg(MSGT_DECVIDEO,MSGL_DBG2,"InitializeQTML returned %i\n",result);
|
||||
mp_msg(MSGT_DECVIDEO,MSGL_DBG2,"InitializeQTML returned %li\n",result);
|
||||
// result=EnterMovies();
|
||||
// printf("EnterMovies->%d\n",result);
|
||||
#endif /* !MACOSX */
|
||||
@ -193,20 +193,20 @@ static int init(sh_video_t *sh){
|
||||
desc.componentFlags=0;
|
||||
desc.componentFlagsMask=0;
|
||||
|
||||
mp_msg(MSGT_DECVIDEO,MSGL_DBG2,"Count = %d\n",CountComponents(&desc));
|
||||
mp_msg(MSGT_DECVIDEO,MSGL_DBG2,"Count = %ld\n",CountComponents(&desc));
|
||||
prev=FindNextComponent(NULL,&desc);
|
||||
if(!prev){
|
||||
mp_msg(MSGT_DECVIDEO,MSGL_ERR,"Cannot find requested component\n");
|
||||
return(0);
|
||||
}
|
||||
mp_msg(MSGT_DECVIDEO,MSGL_DBG2,"Found it! ID = 0x%X\n",prev);
|
||||
mp_msg(MSGT_DECVIDEO,MSGL_DBG2,"Found it! ID = %p\n",prev);
|
||||
|
||||
ci=OpenComponent(prev);
|
||||
mp_msg(MSGT_DECVIDEO,MSGL_DBG2,"ci=%p\n",ci);
|
||||
|
||||
memset(&icap,0,sizeof(icap));
|
||||
cres=ImageCodecInitialize(ci,&icap);
|
||||
mp_msg(MSGT_DECVIDEO,MSGL_DBG2,"ImageCodecInitialize->%p size=%d (%d)\n",cres,icap.recordSize,icap.decompressRecordSize);
|
||||
mp_msg(MSGT_DECVIDEO,MSGL_DBG2,"ImageCodecInitialize->%#x size=%d (%d)\n",cres,icap.recordSize,icap.decompressRecordSize);
|
||||
|
||||
memset(&cinfo,0,sizeof(cinfo));
|
||||
cres=ImageCodecGetCodecInfo(ci,&cinfo);
|
||||
@ -281,7 +281,7 @@ static int init(sh_video_t *sh){
|
||||
mp_msg(MSGT_DECVIDEO,MSGL_ERR,"Unknown requested csp\n");
|
||||
return(0);
|
||||
}
|
||||
mp_msg(MSGT_DECVIDEO,MSGL_DBG2,"imgfmt: %s qt_imgfmt: %.4s\n", vo_format_name(imgfmt), &qt_imgfmt);
|
||||
mp_msg(MSGT_DECVIDEO,MSGL_DBG2,"imgfmt: %s qt_imgfmt: %.4s\n", vo_format_name(imgfmt), (char *)&qt_imgfmt);
|
||||
sh->context = (void *)qt_imgfmt;
|
||||
if(!mpcodecs_config_vo(sh,sh->disp_w,sh->disp_h,imgfmt)) return 0;
|
||||
}
|
||||
@ -327,7 +327,7 @@ if(!codec_inited){
|
||||
0,
|
||||
mpi->planes[0],
|
||||
mpi->stride[0]);
|
||||
mp_msg(MSGT_DECVIDEO,MSGL_DBG2,"NewGWorldFromPtr returned:%d\n",65536-(result&0xffff));
|
||||
mp_msg(MSGT_DECVIDEO,MSGL_DBG2,"NewGWorldFromPtr returned:%ld\n",65536-(result&0xffff));
|
||||
// if (65536-(result&0xFFFF) != 10000)
|
||||
// return NULL;
|
||||
|
||||
@ -368,7 +368,7 @@ if(!codec_inited){
|
||||
if(decpar.wantedDestinationPixelTypes)
|
||||
{ OSType *p=*(decpar.wantedDestinationPixelTypes);
|
||||
if(p) while(*p){
|
||||
mp_msg(MSGT_DECVIDEO,MSGL_DBG2,"supported csp: 0x%08X %.4s\n",*p,p);
|
||||
mp_msg(MSGT_DECVIDEO,MSGL_DBG2,"supported csp: 0x%08X %.4s\n",*p,(char *)p);
|
||||
++p;
|
||||
}
|
||||
}
|
||||
@ -390,7 +390,7 @@ if(!codec_inited){
|
||||
if(decpar.frameNumber==124){
|
||||
decpar.frameNumber=1;
|
||||
cres=ImageCodecPreDecompress(ci,&decpar);
|
||||
mp_msg(MSGT_DECVIDEO,MSGL_DBG2,"ImageCodecPreDecompress cres=0x%X\n",cres);
|
||||
mp_msg(MSGT_DECVIDEO,MSGL_DBG2,"ImageCodecPreDecompress cres=0x%lX\n",cres);
|
||||
}
|
||||
#endif
|
||||
|
||||
|
@ -275,14 +275,14 @@ static void uninit(sh_video_t *sh){
|
||||
#endif
|
||||
if (ret)
|
||||
{
|
||||
mp_msg(MSGT_WIN32, MSGL_WARN, "ICDecompressEnd failed: %d\n", ret);
|
||||
mp_msg(MSGT_WIN32, MSGL_WARN, "ICDecompressEnd failed: %ld\n", ret);
|
||||
return;
|
||||
}
|
||||
|
||||
ret = ICClose(priv->handle);
|
||||
if (ret)
|
||||
{
|
||||
mp_msg(MSGT_WIN32, MSGL_WARN, "ICClose failed: %d\n", ret);
|
||||
mp_msg(MSGT_WIN32, MSGL_WARN, "ICClose failed: %ld\n", ret);
|
||||
return;
|
||||
}
|
||||
|
||||
@ -323,7 +323,7 @@ static mp_image_t* decode(sh_video_t *sh,void* data,int len,int flags){
|
||||
sh->bih, data, priv->o_bih, (flags&3) ? 0 : mpi->planes[0]);
|
||||
|
||||
if ((int)ret){
|
||||
mp_msg(MSGT_DECVIDEO,MSGL_WARN,"Error decompressing frame, err=%d\n",ret);
|
||||
mp_msg(MSGT_DECVIDEO,MSGL_WARN,"Error decompressing frame, err=%ld\n",ret);
|
||||
return NULL;
|
||||
}
|
||||
|
||||
|
@ -258,27 +258,27 @@ static int xacodec_load(sh_video_t *sh, char *filename)
|
||||
return(0);
|
||||
}
|
||||
|
||||
mp_msg(MSGT_DECVIDEO, MSGL_DBG2, "Exported functions by codec: [functable: 0x%08x entries: %d]\n",
|
||||
mp_msg(MSGT_DECVIDEO, MSGL_DBG2, "Exported functions by codec: [functable: %p entries: %d]\n",
|
||||
mod_hdr->funcs, mod_hdr->num_funcs);
|
||||
for (i = 0; i < (int)mod_hdr->num_funcs; i++)
|
||||
{
|
||||
mp_msg(MSGT_DECVIDEO, MSGL_DBG2, " %d: %d %d [iq:0x%08x d:0x%08x]\n",
|
||||
mp_msg(MSGT_DECVIDEO, MSGL_DBG2, " %d: %d %d [iq:%p d:%p]\n",
|
||||
i, func[i].what, func[i].id, func[i].iq_func, func[i].dec_func);
|
||||
if (func[i].what & XAVID_AVI_QUERY)
|
||||
{
|
||||
mp_msg(MSGT_DECVIDEO, MSGL_DBG2, " 0x%08x: avi init/query func (id: %d)\n",
|
||||
mp_msg(MSGT_DECVIDEO, MSGL_DBG2, " %p: avi init/query func (id: %d)\n",
|
||||
func[i].iq_func, func[i].id);
|
||||
priv->iq_func = (void *)func[i].iq_func;
|
||||
}
|
||||
if (func[i].what & XAVID_QT_QUERY)
|
||||
{
|
||||
mp_msg(MSGT_DECVIDEO, MSGL_DBG2, " 0x%08x: qt init/query func (id: %d)\n",
|
||||
mp_msg(MSGT_DECVIDEO, MSGL_DBG2, " %p: qt init/query func (id: %d)\n",
|
||||
func[i].iq_func, func[i].id);
|
||||
priv->iq_func = (void *)func[i].iq_func;
|
||||
}
|
||||
if (func[i].what & XAVID_DEC_FUNC)
|
||||
{
|
||||
mp_msg(MSGT_DECVIDEO, MSGL_DBG2, " 0x%08x: decoder func (init/query: 0x%08x) (id: %d)\n",
|
||||
mp_msg(MSGT_DECVIDEO, MSGL_DBG2, " %p: decoder func (init/query: %p) (id: %d)\n",
|
||||
func[i].dec_func, func[i].iq_func, func[i].id);
|
||||
priv->dec_func = (void *)func[i].dec_func;
|
||||
}
|
||||
@ -306,7 +306,7 @@ static int xacodec_query(sh_video_t *sh, XA_CODEC_HDR *codec_hdr)
|
||||
{
|
||||
case CODEC_SUPPORTED:
|
||||
priv->dec_func = (void *)codec_hdr->decoder;
|
||||
mp_msg(MSGT_DECVIDEO, MSGL_DBG2, "Codec is supported: found decoder for %s at 0x%08x\n",
|
||||
mp_msg(MSGT_DECVIDEO, MSGL_DBG2, "Codec is supported: found decoder for %s at %p\n",
|
||||
codec_hdr->description, codec_hdr->decoder);
|
||||
return(1);
|
||||
case CODEC_UNSUPPORTED:
|
||||
@ -720,8 +720,8 @@ static int init(sh_video_t *sh)
|
||||
priv->decinfo->xs = priv->decinfo->ys = 0;
|
||||
priv->decinfo->special = 0;
|
||||
priv->decinfo->extra = codec_hdr.extra;
|
||||
mp_msg(MSGT_DECVIDEO, MSGL_DBG2, "decinfo->extra, filled by codec: 0x%08x [%s]\n",
|
||||
&priv->decinfo->extra, priv->decinfo->extra);
|
||||
mp_msg(MSGT_DECVIDEO, MSGL_DBG2, "decinfo->extra, filled by codec: %p [%s]\n",
|
||||
&priv->decinfo->extra, (char *)priv->decinfo->extra);
|
||||
|
||||
return(1);
|
||||
}
|
||||
|
@ -146,13 +146,13 @@ static int config(struct vf_instance_s* vf,
|
||||
cdesc.componentFlagsMask=0;
|
||||
|
||||
|
||||
mp_msg(MSGT_MENCODER,MSGL_DBG2,"Count = %d\n",CountComponents(&cdesc));
|
||||
mp_msg(MSGT_MENCODER,MSGL_DBG2,"Count = %ld\n",CountComponents(&cdesc));
|
||||
compressor=FindNextComponent(NULL,&cdesc);
|
||||
if(!compressor){
|
||||
mp_msg(MSGT_MENCODER,MSGL_ERR,"Cannot find requested component\n");
|
||||
return(0);
|
||||
}
|
||||
mp_msg(MSGT_MENCODER,MSGL_DBG2,"Found it! ID = 0x%X\n",compressor);
|
||||
mp_msg(MSGT_MENCODER,MSGL_DBG2,"Found it! ID = %p\n",compressor);
|
||||
|
||||
// cres= FindCodec (fourcc,anyCodec,&compressor,&decompressor );
|
||||
// printf("FindCodec returned:%i compressor: 0x%X decompressor: 0x%X\n",cres&0xFFFF,compressor,decompressor);
|
||||
@ -218,7 +218,7 @@ if(!codec_inited){
|
||||
bswap_32(format),
|
||||
compressor,
|
||||
&framesizemax );
|
||||
mp_msg(MSGT_MENCODER,MSGL_DBG2,"GetMaxCompressionSize returned:%i : MaxSize:%i\n",cres&0xFFFF,framesizemax);
|
||||
mp_msg(MSGT_MENCODER,MSGL_DBG2,"GetMaxCompressionSize returned:%i : MaxSize:%li\n",cres&0xFFFF,framesizemax);
|
||||
frame_comp=malloc(framesizemax);
|
||||
|
||||
desc = (ImageDescriptionHandle)NewHandleClear(MAX_IDSIZE); //memory where the desc will be stored
|
||||
|
@ -405,7 +405,7 @@ mp_image_t* vf_get_image(vf_instance_t* vf, unsigned int outfmt, int mp_imgtype,
|
||||
(mpi->flags&MP_IMGFLAG_YUV)?"YUV":((mpi->flags&MP_IMGFLAG_SWAPPED)?"BGR":"RGB"),
|
||||
(mpi->flags&MP_IMGFLAG_PLANAR)?"planar":"packed",
|
||||
mpi->bpp*mpi->width*mpi->height/8);
|
||||
mp_msg(MSGT_DECVIDEO,MSGL_DBG2,"(imgfmt: %x, planes: %x,%x,%x strides: %d,%d,%d, chroma: %dx%d, shift: h:%d,v:%d)\n",
|
||||
mp_msg(MSGT_DECVIDEO,MSGL_DBG2,"(imgfmt: %x, planes: %p,%p,%p strides: %d,%d,%d, chroma: %dx%d, shift: h:%d,v:%d)\n",
|
||||
mpi->imgfmt, mpi->planes[0], mpi->planes[1], mpi->planes[2],
|
||||
mpi->stride[0], mpi->stride[1], mpi->stride[2],
|
||||
mpi->chroma_width, mpi->chroma_height, mpi->chroma_x_shift, mpi->chroma_y_shift);
|
||||
|
@ -132,8 +132,8 @@ __________________________________________________________________________
|
||||
*/
|
||||
typedef struct
|
||||
{
|
||||
unsigned short int width;
|
||||
unsigned short int height;
|
||||
unsigned int width;
|
||||
unsigned int height;
|
||||
|
||||
unsigned char * pixel;
|
||||
|
||||
|
@ -238,7 +238,7 @@ while(1){
|
||||
s->aIndex[i].qwOffset |= ((uint64_t)stream_read_dword_le(demuxer->stream) & 0xffffffff)<<32;
|
||||
s->aIndex[i].dwSize = stream_read_dword_le(demuxer->stream);
|
||||
s->aIndex[i].dwDuration = stream_read_dword_le(demuxer->stream);
|
||||
mp_msg (MSGT_HEADER, MSGL_V, "ODML (%.4s): [%d] 0x%016llx 0x%04lx %ld\n",
|
||||
mp_msg (MSGT_HEADER, MSGL_V, "ODML (%.4s): [%d] 0x%016"PRIx64" 0x%04x %u\n",
|
||||
(s->dwChunkId), i,
|
||||
(uint64_t)s->aIndex[i].qwOffset, s->aIndex[i].dwSize, s->aIndex[i].dwDuration);
|
||||
}
|
||||
@ -353,7 +353,7 @@ while(1){
|
||||
uint32_t last_off = 0;
|
||||
priv->idx_size=size2>>4;
|
||||
mp_msg(MSGT_HEADER,MSGL_V,MSGTR_MPDEMUX_AVIHDR_ReadingIndexBlockChunksForFrames,
|
||||
priv->idx_size,avih.dwTotalFrames, stream_tell(demuxer->stream));
|
||||
priv->idx_size,avih.dwTotalFrames, (int64_t)stream_tell(demuxer->stream));
|
||||
priv->idx=malloc(priv->idx_size<<4);
|
||||
// printf("\nindex to %p !!!!! (priv=%p)\n",priv->idx,priv);
|
||||
stream_read(demuxer->stream,(char*)priv->idx,priv->idx_size<<4);
|
||||
@ -410,9 +410,9 @@ while(1){
|
||||
demux_info_add(demuxer, hdr, buf);
|
||||
}
|
||||
}
|
||||
mp_msg(MSGT_HEADER,MSGL_DBG2,"list_end=0x%X pos=0x%X chunksize=0x%X next=0x%X\n",
|
||||
(int)list_end, (int)stream_tell(demuxer->stream),
|
||||
chunksize, (int)chunksize+stream_tell(demuxer->stream));
|
||||
mp_msg(MSGT_HEADER,MSGL_DBG2,"list_end=0x%"PRIX64" pos=0x%"PRIX64" chunksize=0x%"PRIX64" next=0x%"PRIX64"\n",
|
||||
(int64_t)list_end, (int64_t)stream_tell(demuxer->stream),
|
||||
(int64_t)chunksize, (int64_t)chunksize+(int64_t)stream_tell(demuxer->stream));
|
||||
if(list_end>0 &&
|
||||
chunksize+stream_tell(demuxer->stream) == list_end) list_end=0;
|
||||
if(list_end>0 && chunksize+stream_tell(demuxer->stream)>list_end){
|
||||
|
@ -120,7 +120,7 @@ int cache_fill(cache_vars_t* s){
|
||||
|
||||
if(read<s->min_filepos || read>s->max_filepos){
|
||||
// seek...
|
||||
mp_msg(MSGT_CACHE,MSGL_DBG2,"Out of boundaries... seeking to 0x%X \n",read);
|
||||
mp_msg(MSGT_CACHE,MSGL_DBG2,"Out of boundaries... seeking to 0x%"PRIX64" \n",(int64_t)read);
|
||||
// streaming: drop cache contents only if seeking backward or too much fwd:
|
||||
if(s->stream->type!=STREAMTYPE_STREAM ||
|
||||
read<s->min_filepos || read>=s->max_filepos+s->seek_limit)
|
||||
@ -129,7 +129,7 @@ int cache_fill(cache_vars_t* s){
|
||||
s->min_filepos=s->max_filepos=read; // drop cache content :(
|
||||
if(s->stream->eof) stream_reset(s->stream);
|
||||
stream_seek(s->stream,read);
|
||||
mp_msg(MSGT_CACHE,MSGL_DBG2,"Seek done. new pos: 0x%X \n",(int)stream_tell(s->stream));
|
||||
mp_msg(MSGT_CACHE,MSGL_DBG2,"Seek done. new pos: 0x%"PRIX64" \n",(int64_t)stream_tell(s->stream));
|
||||
}
|
||||
}
|
||||
|
||||
@ -288,12 +288,12 @@ int stream_enable_cache(stream_t *stream,int size,int min,int seek_limit){
|
||||
stream->cache_pid = CreateThread(NULL,0,ThreadProc,s,0,&threadId);
|
||||
#endif
|
||||
// wait until cache is filled at least prefill_init %
|
||||
mp_msg(MSGT_CACHE,MSGL_V,"CACHE_PRE_INIT: %d [%d] %d pre:%d eof:%d \n",
|
||||
s->min_filepos,s->read_filepos,s->max_filepos,min,s->eof);
|
||||
mp_msg(MSGT_CACHE,MSGL_V,"CACHE_PRE_INIT: %"PRId64" [%"PRId64"] %"PRId64" pre:%d eof:%d \n",
|
||||
(int64_t)s->min_filepos,(int64_t)s->read_filepos,(int64_t)s->max_filepos,min,(int64_t)s->eof);
|
||||
while(s->read_filepos<s->min_filepos || s->max_filepos-s->read_filepos<min){
|
||||
mp_msg(MSGT_CACHE,MSGL_STATUS,MSGTR_CacheFill,
|
||||
100.0*(float)(s->max_filepos-s->read_filepos)/(float)(s->buffer_size),
|
||||
s->max_filepos-s->read_filepos
|
||||
(int64_t)s->max_filepos-s->read_filepos
|
||||
);
|
||||
if(s->eof) break; // file is smaller than prefill size
|
||||
if(mp_input_check_interrupt(PREFILL_SLEEP_TIME))
|
||||
@ -347,7 +347,7 @@ int cache_stream_seek_long(stream_t *stream,off_t pos){
|
||||
s=stream->cache_data;
|
||||
// s->seek_lock=1;
|
||||
|
||||
mp_msg(MSGT_CACHE,MSGL_DBG2,"CACHE2_SEEK: 0x%X <= 0x%X (0x%X) <= 0x%X \n",s->min_filepos,(int)pos,s->read_filepos,s->max_filepos);
|
||||
mp_msg(MSGT_CACHE,MSGL_DBG2,"CACHE2_SEEK: 0x%"PRIX64" <= 0x%"PRIX64" (0x%"PRIX64") <= 0x%"PRIX64" \n",s->min_filepos,pos,s->read_filepos,s->max_filepos);
|
||||
|
||||
newpos=pos/s->sector_size; newpos*=s->sector_size; // align
|
||||
stream->pos=s->read_filepos=newpos;
|
||||
|
@ -361,7 +361,7 @@ static int demux_asf_fill_buffer(demuxer_t *demux, demux_stream_t *ds){
|
||||
return 1; // success
|
||||
}
|
||||
|
||||
mp_msg(MSGT_DEMUX,MSGL_V,"%08X: UNKNOWN TYPE %02X %02X %02X %02X %02X...\n",demux->filepos,asf_packet[0],asf_packet[1],asf_packet[2],asf_packet[3],asf_packet[4]);
|
||||
mp_msg(MSGT_DEMUX,MSGL_V,"%08"PRIX64": UNKNOWN TYPE %02X %02X %02X %02X %02X...\n",(int64_t)demux->filepos,asf_packet[0],asf_packet[1],asf_packet[2],asf_packet[3],asf_packet[4]);
|
||||
return 0;
|
||||
}
|
||||
|
||||
|
@ -221,7 +221,7 @@ do{
|
||||
|
||||
pos = (off_t)priv->idx_offset+AVI_IDX_OFFSET(idx);
|
||||
if((pos<demux->movi_start || pos>=demux->movi_end) && (demux->movi_end>demux->movi_start) && (demux->stream->flags & STREAM_SEEK)){
|
||||
mp_msg(MSGT_DEMUX,MSGL_V,"ChunkOffset out of range! idx=0x%X \n",pos);
|
||||
mp_msg(MSGT_DEMUX,MSGL_V,"ChunkOffset out of range! idx=0x%"PRIX64" \n",(int64_t)pos);
|
||||
continue;
|
||||
}
|
||||
#if 0
|
||||
@ -245,7 +245,7 @@ do{
|
||||
// if((len&(~1))!=(idx->dwChunkLength&(~1))){
|
||||
// if((len)!=(idx->dwChunkLength)){
|
||||
if((len!=idx->dwChunkLength)&&((len+1)!=idx->dwChunkLength)){
|
||||
mp_msg(MSGT_DEMUX,MSGL_V,"ChunkSize mismatch! raw=%d idx=%ld \n",len,idx->dwChunkLength);
|
||||
mp_msg(MSGT_DEMUX,MSGL_V,"ChunkSize mismatch! raw=%d idx=%d \n",len,idx->dwChunkLength);
|
||||
if(len>0x200000 && idx->dwChunkLength>0x200000) continue; // both values bad :(
|
||||
len=choose_chunk_len(idx->dwChunkLength,len);
|
||||
}
|
||||
@ -335,7 +335,7 @@ do{
|
||||
|
||||
pos = priv->idx_offset+AVI_IDX_OFFSET(idx);
|
||||
if((pos<demux->movi_start || pos>=demux->movi_end) && (demux->movi_end>demux->movi_start)){
|
||||
mp_msg(MSGT_DEMUX,MSGL_V,"ChunkOffset out of range! current=0x%X idx=0x%X \n",demux->filepos,pos);
|
||||
mp_msg(MSGT_DEMUX,MSGL_V,"ChunkOffset out of range! current=0x%"PRIX64" idx=0x%"PRIX64" \n",(int64_t)demux->filepos,(int64_t)pos);
|
||||
continue;
|
||||
}
|
||||
#if 0
|
||||
@ -358,7 +358,7 @@ do{
|
||||
}
|
||||
len=stream_read_dword_le(demux->stream);
|
||||
if((len!=idx->dwChunkLength)&&((len+1)!=idx->dwChunkLength)){
|
||||
mp_msg(MSGT_DEMUX,MSGL_V,"ChunkSize mismatch! raw=%d idx=%ld \n",len,idx->dwChunkLength);
|
||||
mp_msg(MSGT_DEMUX,MSGL_V,"ChunkSize mismatch! raw=%d idx=%d \n",len,idx->dwChunkLength);
|
||||
if(len>0x200000 && idx->dwChunkLength>0x200000) continue; // both values bad :(
|
||||
len=choose_chunk_len(idx->dwChunkLength,len);
|
||||
}
|
||||
@ -582,7 +582,7 @@ static demuxer_t* demux_open_avi(demuxer_t* demuxer){
|
||||
asamples+=(len+priv->audio_block_size-1)/priv->audio_block_size;
|
||||
}
|
||||
}
|
||||
mp_msg(MSGT_DEMUX,MSGL_V,"AVI video size=%lu (%lu) audio size=%lu (%lu)\n",vsize,vsamples,asize,asamples);
|
||||
mp_msg(MSGT_DEMUX,MSGL_V,"AVI video size=%u (%u) audio size=%u (%u)\n",vsize,vsamples,asize,asamples);
|
||||
priv->numberofframes=vsamples;
|
||||
sh_video->i_bps=((float)vsize/(float)vsamples)*(float)sh_video->video.dwRate/(float)sh_video->video.dwScale;
|
||||
if(sh_audio) sh_audio->i_bps=((float)asize/(float)asamples)*(float)sh_audio->audio.dwRate/(float)sh_audio->audio.dwScale;
|
||||
@ -609,7 +609,7 @@ static demuxer_t* demux_open_avi(demuxer_t* demuxer){
|
||||
}
|
||||
}
|
||||
vsize=demuxer->movi_end-demuxer->movi_start-asize-8*priv->numberofframes;
|
||||
mp_msg(MSGT_DEMUX,MSGL_V,"AVI video size=%lu (%lu) audio size=%lu\n",vsize,priv->numberofframes,asize);
|
||||
mp_msg(MSGT_DEMUX,MSGL_V,"AVI video size=%d (%u) audio size=%d\n",vsize,priv->numberofframes,asize);
|
||||
sh_video->i_bps=(float)vsize/(sh_video->frametime*priv->numberofframes);
|
||||
}
|
||||
return demuxer;
|
||||
|
@ -249,7 +249,7 @@ static demuxer_t* demux_open_film(demuxer_t* demuxer)
|
||||
header_size -= 16;
|
||||
|
||||
mp_msg(MSGT_DEMUX, MSGL_HINT, "FILM version %.4s\n",
|
||||
&film_data->film_version);
|
||||
(char *)&film_data->film_version);
|
||||
|
||||
// skip to where the next chunk should be
|
||||
stream_skip(demuxer->stream, 4);
|
||||
|
@ -216,7 +216,7 @@ static int demux_lmlm4_fill_buffer(demuxer_t *demux, demux_stream_t *ds)
|
||||
|
||||
hdr:
|
||||
demux->filepos = stream_tell(demux->stream);
|
||||
mp_msg(MSGT_DEMUX, MSGL_DBG2, "fpos = %d\n", demux->filepos);
|
||||
mp_msg(MSGT_DEMUX, MSGL_DBG2, "fpos = %"PRId64"\n", (int64_t)demux->filepos);
|
||||
|
||||
ret=getFrame(demux, &frameInfo);
|
||||
if(ret<=0) return ret; // EOF/error
|
||||
|
@ -388,7 +388,7 @@ static int mov_check_file(demuxer_t* demuxer){
|
||||
break;
|
||||
default:
|
||||
tmp = be2me_32(tmp);
|
||||
mp_msg(MSGT_DEMUX,MSGL_WARN,"ISO: Unknown File Type Major Brand: %.4s\n",&tmp);
|
||||
mp_msg(MSGT_DEMUX,MSGL_WARN,"ISO: Unknown File Type Major Brand: %.4s\n",(char *)&tmp);
|
||||
}
|
||||
mp_msg(MSGT_DEMUX,MSGL_V,"ISO: File Type Minor Version: %d\n",
|
||||
stream_read_dword(demuxer->stream));
|
||||
@ -396,7 +396,7 @@ static int mov_check_file(demuxer_t* demuxer){
|
||||
// List all compatible brands
|
||||
for(i = 0; i < ((len-16)/4); i++) {
|
||||
tmp = be2me_32(stream_read_dword(demuxer->stream));
|
||||
mp_msg(MSGT_DEMUX,MSGL_V,"ISO: File Type Compatible Brand #%d: %.4s\n",i,&tmp);
|
||||
mp_msg(MSGT_DEMUX,MSGL_V,"ISO: File Type Compatible Brand #%d: %.4s\n",i,(char *)&tmp);
|
||||
skipped += 4;
|
||||
}
|
||||
#endif
|
||||
@ -406,8 +406,8 @@ static int mov_check_file(demuxer_t* demuxer){
|
||||
mp_msg(MSGT_DEMUX,MSGL_V,"MOV: Movie header found!\n");
|
||||
priv->moov_start=(off_t)stream_tell(demuxer->stream);
|
||||
priv->moov_end=(off_t)priv->moov_start+len-skipped;
|
||||
mp_msg(MSGT_DEMUX,MSGL_DBG2,"MOV: Movie header: start: %x end: %x\n",
|
||||
priv->moov_start, priv->moov_end);
|
||||
mp_msg(MSGT_DEMUX,MSGL_DBG2,"MOV: Movie header: start: %"PRIx64" end: %"PRIx64"\n",
|
||||
(int64_t)priv->moov_start, (int64_t)priv->moov_end);
|
||||
skipped+=8;
|
||||
i = stream_read_dword(demuxer->stream)-8;
|
||||
if(stream_read_dword(demuxer->stream)==MOV_FOURCC('r','m','r','a')){
|
||||
@ -470,8 +470,8 @@ static int mov_check_file(demuxer_t* demuxer){
|
||||
mp_msg(MSGT_DEMUX,MSGL_V,"MOV: Movie DATA found!\n");
|
||||
priv->mdat_start=stream_tell(demuxer->stream);
|
||||
priv->mdat_end=priv->mdat_start+len-skipped;
|
||||
mp_msg(MSGT_DEMUX,MSGL_DBG2,"MOV: Movie data: start: %x end: %x\n",
|
||||
priv->mdat_start, priv->mdat_end);
|
||||
mp_msg(MSGT_DEMUX,MSGL_DBG2,"MOV: Movie data: start: %"PRIx64" end: %"PRIx64"\n",
|
||||
(int64_t)priv->mdat_start, (int64_t)priv->mdat_end);
|
||||
flags|=2;
|
||||
if(flags==3){
|
||||
// if we're over the headers, then we can stop parsing here!
|
||||
@ -482,7 +482,7 @@ static int mov_check_file(demuxer_t* demuxer){
|
||||
case MOV_FOURCC('f','r','e','e'):
|
||||
case MOV_FOURCC('s','k','i','p'):
|
||||
case MOV_FOURCC('j','u','n','k'):
|
||||
mp_msg(MSGT_DEMUX,MSGL_DBG2,"MOV: free space (len: %d)\n", len);
|
||||
mp_msg(MSGT_DEMUX,MSGL_DBG2,"MOV: free space (len: %"PRId64")\n", (int64_t)len);
|
||||
/* unused, if you edit a mov, you can use space provided by free atoms (redefining it) */
|
||||
break;
|
||||
case MOV_FOURCC('p','n','o','t'):
|
||||
@ -492,7 +492,7 @@ static int mov_check_file(demuxer_t* demuxer){
|
||||
default:
|
||||
if(no==0){ free(priv); return 0;} // first chunk is bad!
|
||||
id = be2me_32(id);
|
||||
mp_msg(MSGT_DEMUX,MSGL_V,"MOV: unknown chunk: %.4s %d\n",&id,(int)len);
|
||||
mp_msg(MSGT_DEMUX,MSGL_V,"MOV: unknown chunk: %.4s %d\n",(char *)&id,(int)len);
|
||||
}
|
||||
skip_chunk:
|
||||
if(!stream_skip(demuxer->stream,len-skipped)) break;
|
||||
@ -560,7 +560,7 @@ static void lschunks(demuxer_t* demuxer,int level,off_t endpos,mov_track_t* trak
|
||||
len-=8;
|
||||
id=stream_read_dword(demuxer->stream);
|
||||
//
|
||||
mp_msg(MSGT_DEMUX,MSGL_DBG2,"lschunks %.4s %d\n",&id,(int)len);
|
||||
mp_msg(MSGT_DEMUX,MSGL_DBG2,"lschunks %.4s %d\n",(char *)&id,(int)len);
|
||||
//
|
||||
if(trak){
|
||||
if (lschunks_intrak(demuxer, level, id, pos, len, trak) < 0)
|
||||
@ -806,7 +806,7 @@ static void lschunks(demuxer_t* demuxer,int level,off_t endpos,mov_track_t* trak
|
||||
atom_len);
|
||||
}
|
||||
}
|
||||
mp_msg(MSGT_DEMUX, MSGL_INFO, "Fourcc: %.4s\n",&trak->fourcc);
|
||||
mp_msg(MSGT_DEMUX, MSGL_INFO, "Fourcc: %.4s\n",(char *)&trak->fourcc);
|
||||
#if 0
|
||||
{ FILE* f=fopen("stdata.dat","wb");
|
||||
fwrite(trak->stdata,trak->stdata_len,1,f);
|
||||
@ -1150,7 +1150,7 @@ static void lschunks(demuxer_t* demuxer,int level,off_t endpos,mov_track_t* trak
|
||||
mp_msg(MSGT_DEMUX, MSGL_INFO, "Display size: %d x %d\n",
|
||||
trak->tkdata[77]|(trak->tkdata[76]<<8),
|
||||
trak->tkdata[81]|(trak->tkdata[80]<<8));
|
||||
mp_msg(MSGT_DEMUX, MSGL_INFO, "Fourcc: %.4s Codec: '%.*s'\n",&trak->fourcc,trak->stdata[42]&31,trak->stdata+43);
|
||||
mp_msg(MSGT_DEMUX, MSGL_INFO, "Fourcc: %.4s Codec: '%.*s'\n",(char *)&trak->fourcc,trak->stdata[42]&31,trak->stdata+43);
|
||||
|
||||
// if(demuxer->video->id==-1 || demuxer->video->id==priv->track_db){
|
||||
// // (auto)selected video track:
|
||||
@ -1231,7 +1231,7 @@ static void lschunks(demuxer_t* demuxer,int level,off_t endpos,mov_track_t* trak
|
||||
case MOV_FOURCC('d','c','o','m'): {
|
||||
// int temp=stream_read_dword(demuxer->stream);
|
||||
unsigned int algo=be2me_32(stream_read_dword(demuxer->stream));
|
||||
mp_msg(MSGT_DEMUX, MSGL_INFO, "Compressed header uses %.4s algo!\n",&algo);
|
||||
mp_msg(MSGT_DEMUX, MSGL_INFO, "Compressed header uses %.4s algo!\n",(char *)&algo);
|
||||
break;
|
||||
}
|
||||
case MOV_FOURCC('c','m','v','d'): {
|
||||
@ -1275,7 +1275,7 @@ static void lschunks(demuxer_t* demuxer,int level,off_t endpos,mov_track_t* trak
|
||||
}
|
||||
#endif
|
||||
if(moov_sz != zstrm.total_out)
|
||||
mp_msg(MSGT_DEMUX, MSGL_WARN, "Warning! moov size differs cmov: %d zlib: %d\n",moov_sz,zstrm.total_out);
|
||||
mp_msg(MSGT_DEMUX, MSGL_WARN, "Warning! moov size differs cmov: %d zlib: %ld\n",moov_sz,zstrm.total_out);
|
||||
zret = inflateEnd(&zstrm);
|
||||
|
||||
backup=demuxer->stream;
|
||||
@ -1303,7 +1303,7 @@ static void lschunks(demuxer_t* demuxer,int level,off_t endpos,mov_track_t* trak
|
||||
udta_len = stream_read_dword(demuxer->stream);
|
||||
udta_id = stream_read_dword(demuxer->stream);
|
||||
udta_size -= 8;
|
||||
mp_msg(MSGT_DEMUX, MSGL_DBG2, "udta_id: %.4s (len: %d)\n", &udta_id, udta_len);
|
||||
mp_msg(MSGT_DEMUX, MSGL_DBG2, "udta_id: %.4s (len: %"PRId64")\n", (char *)&udta_id, (int64_t)udta_len);
|
||||
switch (udta_id)
|
||||
{
|
||||
case MOV_FOURCC(0xa9,'c','p','y'):
|
||||
@ -1406,7 +1406,7 @@ static void lschunks(demuxer_t* demuxer,int level,off_t endpos,mov_track_t* trak
|
||||
} /* eof udta */
|
||||
default:
|
||||
id = be2me_32(id);
|
||||
mp_msg(MSGT_DEMUX,MSGL_V,"MOV: unknown chunk: %.4s %d\n",&id,(int)len);
|
||||
mp_msg(MSGT_DEMUX,MSGL_V,"MOV: unknown chunk: %.4s %d\n",(char *)&id,(int)len);
|
||||
} /* endof switch */
|
||||
} /* endof else */
|
||||
|
||||
@ -1482,7 +1482,7 @@ static int lschunks_intrak(demuxer_t* demuxer, int level, unsigned int id,
|
||||
str[len] = 0;
|
||||
mp_msg(MSGT_DEMUX, MSGL_V,
|
||||
"MOV: %*sHandler header: %.4s/%.4s (%.4s) %s\n", level, "",
|
||||
&type, &subtype, &manufact, str);
|
||||
(char *)&type, (char *)&subtype, (char *)&manufact, str);
|
||||
free(str);
|
||||
switch(bswap_32(type)) {
|
||||
case MOV_FOURCC('m','h','l','r'):
|
||||
@ -1494,7 +1494,7 @@ static int lschunks_intrak(demuxer_t* demuxer, int level, unsigned int id,
|
||||
default:
|
||||
mp_msg(MSGT_DEMUX, MSGL_V,
|
||||
"MOV: unknown handler class: 0x%X (%.4s)\n",
|
||||
bswap_32(type), &type);
|
||||
bswap_32(type), (char *)&type);
|
||||
}
|
||||
break;
|
||||
}
|
||||
@ -1536,8 +1536,8 @@ static int lschunks_intrak(demuxer_t* demuxer, int level, unsigned int id,
|
||||
if (len < 8)
|
||||
break; // error
|
||||
mp_msg(MSGT_DEMUX, MSGL_V,
|
||||
"MOV: %*s desc #%d: %.4s (%d bytes)\n", level, "",
|
||||
i, &fourcc, len - 16);
|
||||
"MOV: %*s desc #%d: %.4s (%"PRId64" bytes)\n", level, "",
|
||||
i, (char *)&fourcc, (int64_t)len - 16);
|
||||
if (fourcc != trak->fourcc && i)
|
||||
mp_msg(MSGT_DEMUX, MSGL_WARN, MSGTR_MOVvariableFourCC);
|
||||
// if(!i)
|
||||
@ -1582,7 +1582,7 @@ static int lschunks_intrak(demuxer_t* demuxer, int level, unsigned int id,
|
||||
int flags = (temp << 16) | (temp << 8) | temp;
|
||||
int i;
|
||||
mp_msg(MSGT_DEMUX, MSGL_V,
|
||||
"MOV: %*sSample->Chunk mapping table! (%d blocks) (ver:%d,flags:%ld)\n", level, "",
|
||||
"MOV: %*sSample->Chunk mapping table! (%d blocks) (ver:%d,flags:%d)\n", level, "",
|
||||
len, ver, flags);
|
||||
// read data:
|
||||
trak->chunkmap_size = len;
|
||||
@ -1602,7 +1602,7 @@ static int lschunks_intrak(demuxer_t* demuxer, int level, unsigned int id,
|
||||
int entries = stream_read_dword(demuxer->stream);
|
||||
int i;
|
||||
mp_msg(MSGT_DEMUX, MSGL_V,
|
||||
"MOV: %*sSample size table! (entries=%d ss=%d) (ver:%d,flags:%ld)\n", level, "",
|
||||
"MOV: %*sSample size table! (entries=%d ss=%d) (ver:%d,flags:%d)\n", level, "",
|
||||
entries, ss, ver, flags);
|
||||
trak->samplesize = ss;
|
||||
if (!ss) {
|
||||
@ -1662,7 +1662,7 @@ static int lschunks_intrak(demuxer_t* demuxer, int level, unsigned int id,
|
||||
int flags = (temp << 16) | (temp<<8) | temp;
|
||||
int i;
|
||||
mp_msg(MSGT_DEMUX, MSGL_V,
|
||||
"MOV: %*sSyncing samples (keyframes) table! (%d entries) (ver:%d,flags:%ld)\n", level, "",
|
||||
"MOV: %*sSyncing samples (keyframes) table! (%d entries) (ver:%d,flags:%d)\n", level, "",
|
||||
entries, ver, flags);
|
||||
trak->keyframes_size = entries;
|
||||
trak->keyframes = malloc(sizeof(unsigned int) * entries);
|
||||
@ -1697,7 +1697,7 @@ static int lschunks_intrak(demuxer_t* demuxer, int level, unsigned int id,
|
||||
int flags = (temp << 16) | (temp << 8) | temp;
|
||||
int i;
|
||||
mp_msg(MSGT_DEMUX, MSGL_V,
|
||||
"MOV: %*sEdit list table (%d entries) (ver:%d,flags:%ld)\n", level, "",
|
||||
"MOV: %*sEdit list table (%d entries) (ver:%d,flags:%d)\n", level, "",
|
||||
entries, ver, flags);
|
||||
#if 1
|
||||
trak->editlist_size = entries;
|
||||
@ -1722,7 +1722,7 @@ static int lschunks_intrak(demuxer_t* demuxer, int level, unsigned int id,
|
||||
}
|
||||
default:
|
||||
id = be2me_32(id);
|
||||
mp_msg(MSGT_DEMUX,MSGL_V,"MOV: unknown chunk: %.4s %d\n",&id,(int)len);
|
||||
mp_msg(MSGT_DEMUX,MSGL_V,"MOV: unknown chunk: %.4s %d\n",(char *)&id,(int)len);
|
||||
break;
|
||||
}//switch(id)
|
||||
return 0;
|
||||
@ -1740,8 +1740,8 @@ static demuxer_t* mov_read_header(demuxer_t* demuxer){
|
||||
stream_reset(demuxer->stream);
|
||||
if(!stream_seek(demuxer->stream,priv->moov_start))
|
||||
{
|
||||
mp_msg(MSGT_DEMUX,MSGL_ERR,"MOV: Cannot seek to the beginning of the Movie header (0x%x)\n",
|
||||
priv->moov_start);
|
||||
mp_msg(MSGT_DEMUX,MSGL_ERR,"MOV: Cannot seek to the beginning of the Movie header (0x%"PRIx64")\n",
|
||||
(int64_t)priv->moov_start);
|
||||
return 0;
|
||||
}
|
||||
lschunks(demuxer, 0, priv->moov_end, NULL);
|
||||
@ -1832,7 +1832,7 @@ static demuxer_t* mov_read_header(demuxer_t* demuxer){
|
||||
zret = inflateInit(&zstrm);
|
||||
zret = inflate(&zstrm, Z_NO_FLUSH);
|
||||
if(newlen != zstrm.total_out)
|
||||
mp_msg(MSGT_DEMUX, MSGL_WARN, "Warning! unzipped frame size differs hdr: %d zlib: %d\n",newlen,zstrm.total_out);
|
||||
mp_msg(MSGT_DEMUX, MSGL_WARN, "Warning! unzipped frame size differs hdr: %d zlib: %ld\n",newlen,zstrm.total_out);
|
||||
|
||||
write(fd, buf2, newlen);
|
||||
} else {
|
||||
|
@ -616,7 +616,7 @@ do{
|
||||
if(demux->synced==1){
|
||||
if(head==0x1BB || head==0x1BD || (head>=0x1C0 && head<=0x1EF)){
|
||||
demux->synced=2;
|
||||
mp_msg(MSGT_DEMUX,MSGL_V,"system stream synced at 0x%X (%d)!\n",demux->filepos,demux->filepos);
|
||||
mp_msg(MSGT_DEMUX,MSGL_V,"system stream synced at 0x%"PRIX64" (%"PRId64")!\n",(int64_t)demux->filepos,(int64_t)demux->filepos);
|
||||
num_elementary_packets100=0; // requires for re-sync!
|
||||
num_elementary_packets101=0; // requires for re-sync!
|
||||
} else demux->synced=0;
|
||||
|
@ -326,7 +326,7 @@ int pva_get_payload(demuxer_t * d,pva_payload_t * payload)
|
||||
{
|
||||
if(stream_read_word(d->stream) != (('A'<<8)|'V'))
|
||||
{
|
||||
mp_msg(MSGT_DEMUX,MSGL_V,"demux_pva: pva_get_payload() missed a SyncWord at %ld!! Trying to sync...\n",stream_tell(d->stream));
|
||||
mp_msg(MSGT_DEMUX,MSGL_V,"demux_pva: pva_get_payload() missed a SyncWord at %"PRId64"!! Trying to sync...\n",(int64_t)stream_tell(d->stream));
|
||||
if(!pva_sync(d))
|
||||
{
|
||||
if (!d->stream->eof)
|
||||
@ -350,7 +350,7 @@ int pva_get_payload(demuxer_t * d,pva_payload_t * payload)
|
||||
flags=stream_read_char(d->stream);
|
||||
payload->is_packet_start=flags & 0x10;
|
||||
pack_size=le2me_16(stream_read_word(d->stream));
|
||||
mp_msg(MSGT_DEMUX,MSGL_DBG2,"demux_pva::pva_get_payload(): pack_size=%u field read at offset %lu\n",pack_size,stream_tell(d->stream)-2);
|
||||
mp_msg(MSGT_DEMUX,MSGL_DBG2,"demux_pva::pva_get_payload(): pack_size=%u field read at offset %"PRIu64"\n",pack_size,(int64_t)stream_tell(d->stream)-2);
|
||||
pva_payload_start=stream_tell(d->stream);
|
||||
next_offset=pva_payload_start+pack_size;
|
||||
|
||||
|
@ -135,7 +135,7 @@ static demuxer_t* demux_open_rawdv(demuxer_t* demuxer)
|
||||
rawdv_frames_t *frames = (rawdv_frames_t *)malloc(sizeof(rawdv_frames_t));
|
||||
dv_decoder_t *dv_decoder=NULL;
|
||||
|
||||
mp_msg(MSGT_DEMUXER,MSGL_V,"demux_open_rawdv() end_pos %d\n",demuxer->stream->end_pos);
|
||||
mp_msg(MSGT_DEMUXER,MSGL_V,"demux_open_rawdv() end_pos %"PRId64"\n",(int64_t)demuxer->stream->end_pos);
|
||||
|
||||
// go back to the beginning
|
||||
stream_reset(demuxer->stream);
|
||||
|
@ -1790,7 +1790,7 @@ header_end:
|
||||
if(demuxer->video->sh){
|
||||
sh_video_t *sh=demuxer->video->sh;
|
||||
mp_msg(MSGT_DEMUX,MSGL_V,"VIDEO: %.4s [%08X,%08X] %dx%d (aspect %4.2f) %4.2f fps\n",
|
||||
&sh->format,((unsigned int*)(sh->bih+1))[1],((unsigned int*)(sh->bih+1))[0],
|
||||
(char *)&sh->format,((unsigned int*)(sh->bih+1))[1],((unsigned int*)(sh->bih+1))[0],
|
||||
sh->disp_w,sh->disp_h,sh->aspect,sh->fps);
|
||||
}
|
||||
|
||||
|
@ -188,7 +188,7 @@ int ty_tmf_filetoparts( demuxer_t *demux, TiVoInfo *tivo )
|
||||
}
|
||||
if ( ok == 0 )
|
||||
{
|
||||
mp_msg( MSGT_DEMUX, MSGL_DBG3, "Seek bad %d\n", offset );
|
||||
mp_msg( MSGT_DEMUX, MSGL_DBG3, "Seek bad %"PRId64"\n", (int64_t)offset );
|
||||
done = 1;
|
||||
error = 1;
|
||||
break;
|
||||
@ -282,9 +282,9 @@ int ty_tmf_filetoparts( demuxer_t *demux, TiVoInfo *tivo )
|
||||
tivo->tmf_totalchunks += ( tivo->tmfparts[ index ].fileSize / CHUNKSIZE );
|
||||
}
|
||||
mp_msg( MSGT_DEMUX, MSGL_DBG3,
|
||||
"tmf_filetoparts():total size %"PRId64"\n", tivo->tmf_totalsize );
|
||||
"tmf_filetoparts():total size %"PRId64"\n", (int64_t)tivo->tmf_totalsize );
|
||||
mp_msg( MSGT_DEMUX, MSGL_DBG3,
|
||||
"tmf_filetoparts():total chunks %d\n", tivo->tmf_totalchunks );
|
||||
"tmf_filetoparts():total chunks %"PRId64"\n", (int64_t)tivo->tmf_totalchunks );
|
||||
|
||||
return( 1 );
|
||||
}
|
||||
@ -697,8 +697,8 @@ static int demux_ty_fill_buffer( demuxer_t *demux, demux_stream_t *dsds )
|
||||
numberParts = demux->stream->end_pos / TIVO_PART_LENGTH;
|
||||
offset = numberParts * TIVO_PART_LENGTH;
|
||||
|
||||
mp_msg( MSGT_DEMUX, MSGL_DBG3, "ty:ty/ty+Number Parts %d\n",
|
||||
numberParts );
|
||||
mp_msg( MSGT_DEMUX, MSGL_DBG3, "ty:ty/ty+Number Parts %"PRId64"\n",
|
||||
(int64_t)numberParts );
|
||||
|
||||
if ( ( offset + CHUNKSIZE ) < demux->stream->end_pos )
|
||||
{
|
||||
@ -753,13 +753,13 @@ static int demux_ty_fill_buffer( demuxer_t *demux, demux_stream_t *dsds )
|
||||
// Give a clue as to where we are in the stream
|
||||
// ======================================================================
|
||||
mp_msg( MSGT_DEMUX, MSGL_DBG3,
|
||||
"ty:ty header size %"PRIx64"\n", tivo->size );
|
||||
"ty:ty header size %"PRIx64"\n", (int64_t)tivo->size );
|
||||
mp_msg( MSGT_DEMUX, MSGL_DBG3,
|
||||
"ty:ty which Chunk %"PRIx64"\n", tivo->whichChunk );
|
||||
"ty:ty which Chunk %d\n", tivo->whichChunk );
|
||||
mp_msg( MSGT_DEMUX, MSGL_DBG3,
|
||||
"ty:file end_pos %"PRIx64"\n", demux->stream->end_pos );
|
||||
"ty:file end_pos %"PRIx64"\n", (int64_t)demux->stream->end_pos );
|
||||
mp_msg( MSGT_DEMUX, MSGL_DBG3,
|
||||
"\nty:wanted current offset %"PRIx64"\n", stream_tell( demux->stream ) );
|
||||
"\nty:wanted current offset %"PRIx64"\n", (int64_t)stream_tell( demux->stream ) );
|
||||
|
||||
if ( tivo->size > 0 )
|
||||
{
|
||||
|
@ -113,8 +113,8 @@ static void vivo_parse_text_header(demuxer_t *demux, int header_len)
|
||||
header_len -= strlen(token)+2;
|
||||
if (sscanf(token, "%[^:]:%[^\n]", opt, param) != 2)
|
||||
{
|
||||
mp_msg(MSGT_DEMUX, MSGL_V, "viv_text_header_parser: bad line: '%s' at ~%p\n",
|
||||
token, stream_tell(demux->stream));
|
||||
mp_msg(MSGT_DEMUX, MSGL_V, "viv_text_header_parser: bad line: '%s' at ~%#"PRIx64"\n",
|
||||
token, (int64_t)stream_tell(demux->stream));
|
||||
break;
|
||||
}
|
||||
mp_dbg(MSGT_DEMUX, MSGL_DBG3, "token: '%s' (%d bytes/%d bytes left)\n",
|
||||
@ -364,8 +364,8 @@ static int demux_vivo_fill_buffer(demuxer_t *demux, demux_stream_t *dsds){
|
||||
audio_pos+=len;
|
||||
break;
|
||||
default:
|
||||
mp_msg(MSGT_DEMUX,MSGL_WARN,"VIVO - unknown ID found: %02X at pos %lu contact author!\n",
|
||||
c, stream_tell(demux->stream));
|
||||
mp_msg(MSGT_DEMUX,MSGL_WARN,"VIVO - unknown ID found: %02X at pos %"PRIu64" contact author!\n",
|
||||
c, (int64_t)stream_tell(demux->stream));
|
||||
return 0;
|
||||
}
|
||||
|
||||
|
@ -717,7 +717,7 @@ if (demuxer->desc->open)
|
||||
|
||||
if ((sh_video=demuxer->video->sh) && sh_video->bih){
|
||||
int biComp=le2me_32(sh_video->bih->biCompression);
|
||||
mp_msg(MSGT_DEMUX,MSGL_INFO,"VIDEO: [%.4s] %ldx%ld %dbpp %5.3f fps %5.1f kbps (%4.1f kbyte/s)\n",
|
||||
mp_msg(MSGT_DEMUX,MSGL_INFO,"VIDEO: [%.4s] %dx%d %dbpp %5.3f fps %5.1f kbps (%4.1f kbyte/s)\n",
|
||||
(char *)&biComp,
|
||||
sh_video->bih->biWidth,
|
||||
sh_video->bih->biHeight,
|
||||
|
@ -531,7 +531,7 @@ info[i].id=0;
|
||||
} else {
|
||||
if (ftello(f) != MOVIALIGN) {
|
||||
mp_msg(MSGT_MUXER, MSGL_ERR, "Opendml superindex is too big for reserved space!\n");
|
||||
mp_msg(MSGT_MUXER, MSGL_ERR, "Expected filepos %d, real filepos %d, missing space %d\n", MOVIALIGN, ftell(muxer->file), ftell(muxer->file)-MOVIALIGN);
|
||||
mp_msg(MSGT_MUXER, MSGL_ERR, "Expected filepos %d, real filepos %ld, missing space %ld\n", MOVIALIGN, ftell(muxer->file), ftell(muxer->file)-MOVIALIGN);
|
||||
mp_msg(MSGT_MUXER, MSGL_ERR, "Try increasing MOVIALIGN in libmpdemux/muxer_avi.c\n");
|
||||
}
|
||||
write_avi_list(f,listtypeAVIMOVIE,muxer->movi_end-ftello(f)-12);
|
||||
|
@ -1779,7 +1779,7 @@ static uint64_t parse_fps(float fps)
|
||||
case 60060:
|
||||
return 1536000;
|
||||
default:
|
||||
mp_msg(MSGT_MUXER, MSGL_ERR, "ERROR! unknown fps code: %d", fps);
|
||||
mp_msg(MSGT_MUXER, MSGL_ERR, "ERROR! unknown fps code: %d", (int)(fps*1001+0.5));
|
||||
return 0;
|
||||
}
|
||||
}
|
||||
|
@ -437,7 +437,7 @@ static int init(priv_t *priv)
|
||||
priv->audio_skew_buffer = NULL;
|
||||
|
||||
priv->video_fd = open(priv->video_device, O_RDWR);
|
||||
mp_msg(MSGT_TV, MSGL_DBG2, "Video fd: %d, %x\n", priv->video_fd,
|
||||
mp_msg(MSGT_TV, MSGL_DBG2, "Video fd: %d, %p\n", priv->video_fd,
|
||||
priv->video_device);
|
||||
if (priv->video_fd == -1)
|
||||
{
|
||||
|
@ -811,7 +811,7 @@ static int config(uint32_t width, uint32_t height,
|
||||
// do some more checkings here ...
|
||||
|
||||
mp_msg(MSGT_VO, MSGL_V,
|
||||
"vo_dga: bytes/line: %d, screen res: %dx%d, depth: %d, base: %08x, bpp: %d\n",
|
||||
"vo_dga: bytes/line: %d, screen res: %dx%d, depth: %d, base: %p, bpp: %d\n",
|
||||
vo_dga_width, vo_dga_vp_width, vo_dga_vp_height,
|
||||
HW_MODE.vdm_bytespp, vo_dga_base, HW_MODE.vdm_bitspp);
|
||||
|
||||
@ -900,7 +900,7 @@ static int preinit(const char *arg)
|
||||
for (i = 0; i < vo_modecount; i++)
|
||||
{
|
||||
mp_msg(MSGT_VO, MSGL_V,
|
||||
"vo_dga: (%03d) depth=%d, bpp=%d, r=%08x, g=%08x, b=%08x, %d x %d\n",
|
||||
"vo_dga: (%03d) depth=%d, bpp=%d, r=%08lx, g=%08lx, b=%08lx, %d x %d\n",
|
||||
i, vo_modelines[i].depth,
|
||||
vo_modelines[i].bitsPerPixel,
|
||||
vo_modelines[i].redMask, vo_modelines[i].greenMask,
|
||||
|
@ -657,7 +657,7 @@ static int config(uint32_t width, uint32_t height, uint32_t d_width, uint32_t d_
|
||||
|
||||
acq_color = ((key_color.red / 256) << 16) | ((key_color.green / 256) << 8) | key_color.blue;
|
||||
if (key_color.pixel != KEY_COLOR) {
|
||||
printf("VO: [dxr3] Unable to allocate exact keycolor, using closest match (%0x).\n", key_color.pixel);
|
||||
printf("VO: [dxr3] Unable to allocate exact keycolor, using closest match (0x%lx).\n", key_color.pixel);
|
||||
}
|
||||
|
||||
/* Set keycolor and activate overlay */
|
||||
|
@ -165,7 +165,7 @@ static int config(uint32_t s_width, uint32_t s_height, uint32_t d_width,
|
||||
char LB2[] = { 1, 0, 0 };
|
||||
#endif
|
||||
|
||||
mp_msg(MSGT_VO, MSGL_DBG2, "GIF89a: Config entered [%ldx%ld]\n", s_width,s_height);
|
||||
mp_msg(MSGT_VO, MSGL_DBG2, "GIF89a: Config entered [%dx%d]\n", s_width,s_height);
|
||||
mp_msg(MSGT_VO, MSGL_DBG2, "GIF89a: With requested format: %s\n", vo_format_name(format));
|
||||
|
||||
// save these for later.
|
||||
|
@ -205,7 +205,7 @@ static int x11_errorhandler(Display * display, XErrorEvent * event)
|
||||
mp_msg(MSGT_VO, MSGL_ERR, "X11 error: %s\n", msg);
|
||||
|
||||
mp_msg(MSGT_VO, MSGL_V,
|
||||
"Type: %x, display: %x, resourceid: %x, serial: %x\n",
|
||||
"Type: %x, display: %p, resourceid: %lx, serial: %lx\n",
|
||||
event->type, event->display, event->resourceid, event->serial);
|
||||
mp_msg(MSGT_VO, MSGL_V,
|
||||
"Error code: %x, request code: %x, minor code: %x\n",
|
||||
@ -1299,7 +1299,7 @@ void vo_x11_setlayer(Display * mDisplay, Window vo_window, int layer)
|
||||
xev.data.l[0] = layer ? fs_layer : orig_layer; // if not fullscreen, stay on default layer
|
||||
xev.data.l[1] = CurrentTime;
|
||||
mp_msg(MSGT_VO, MSGL_V,
|
||||
"[x11] Layered style stay on top (layer %d).\n",
|
||||
"[x11] Layered style stay on top (layer %ld).\n",
|
||||
xev.data.l[0]);
|
||||
XSendEvent(mDisplay, mRootWin, False, SubstructureNotifyMask,
|
||||
(XEvent *) & xev);
|
||||
@ -1604,7 +1604,7 @@ static void xscreensaver_disable(Display * dpy)
|
||||
return;
|
||||
}
|
||||
mp_msg(MSGT_VO, MSGL_INFO,
|
||||
"xscreensaver_disable: xscreensaver wid=%d.\n", xs_windowid);
|
||||
"xscreensaver_disable: xscreensaver wid=%ld.\n", xs_windowid);
|
||||
|
||||
deactivate = XInternAtom(dpy, "DEACTIVATE", False);
|
||||
screensaver = XInternAtom(dpy, "SCREENSAVER", False);
|
||||
@ -1903,7 +1903,7 @@ int vo_find_depth_from_visuals(Display * dpy, int screen,
|
||||
for (i = 0; i < nvisuals; i++)
|
||||
{
|
||||
mp_msg(MSGT_VO, MSGL_V,
|
||||
"vo: X11 truecolor visual %#x, depth %d, R:%lX G:%lX B:%lX\n",
|
||||
"vo: X11 truecolor visual %#lx, depth %d, R:%lX G:%lX B:%lX\n",
|
||||
visuals[i].visualid, visuals[i].depth,
|
||||
visuals[i].red_mask, visuals[i].green_mask,
|
||||
visuals[i].blue_mask);
|
||||
@ -2347,27 +2347,27 @@ void vo_xv_print_ck_info()
|
||||
switch ( xv_ck_info.source )
|
||||
{
|
||||
case CK_SRC_CUR:
|
||||
mp_msg( MSGT_VO, MSGL_V, "Using colorkey from Xv (0x%06x).\n",
|
||||
mp_msg( MSGT_VO, MSGL_V, "Using colorkey from Xv (0x%06lx).\n",
|
||||
xv_colorkey );
|
||||
break;
|
||||
case CK_SRC_USE:
|
||||
if ( xv_ck_info.method == CK_METHOD_AUTOPAINT )
|
||||
{
|
||||
mp_msg( MSGT_VO, MSGL_V,
|
||||
"Ignoring colorkey from MPlayer (0x%06x).\n",
|
||||
"Ignoring colorkey from MPlayer (0x%06lx).\n",
|
||||
xv_colorkey );
|
||||
}
|
||||
else
|
||||
{
|
||||
mp_msg( MSGT_VO, MSGL_V,
|
||||
"Using colorkey from MPlayer (0x%06x)."
|
||||
"Using colorkey from MPlayer (0x%06lx)."
|
||||
" Use -colorkey to change.\n",
|
||||
xv_colorkey );
|
||||
}
|
||||
break;
|
||||
case CK_SRC_SET:
|
||||
mp_msg( MSGT_VO, MSGL_V,
|
||||
"Setting and using colorkey from MPlayer (0x%06x)."
|
||||
"Setting and using colorkey from MPlayer (0x%06lx)."
|
||||
" Use -colorkey to change.\n",
|
||||
xv_colorkey );
|
||||
break;
|
||||
|
16
mencoder.c
16
mencoder.c
@ -950,8 +950,8 @@ case ACODEC_COPY:
|
||||
mux_a->h.dwRate *= playback_speed;
|
||||
mux_a->wf->nSamplesPerSec *= playback_speed;
|
||||
mp_msg(MSGT_MENCODER, MSGL_INFO, MSGTR_ACodecFramecopy,
|
||||
mux_a->wf->wFormatTag, mux_a->wf->nChannels, (long)mux_a->wf->nSamplesPerSec,
|
||||
mux_a->wf->wBitsPerSample, (long)mux_a->wf->nAvgBytesPerSec, (long)mux_a->h.dwSampleSize);
|
||||
mux_a->wf->wFormatTag, mux_a->wf->nChannels, mux_a->wf->nSamplesPerSec,
|
||||
mux_a->wf->wBitsPerSample, mux_a->wf->nAvgBytesPerSec, mux_a->h.dwSampleSize);
|
||||
break;
|
||||
}
|
||||
|
||||
@ -982,16 +982,16 @@ else {
|
||||
if (sh_audio && mux_a->codec == ACODEC_COPY) {
|
||||
if (playback_speed != 1.0) mp_msg(MSGT_CPLAYER, MSGL_WARN, MSGTR_NoSpeedWithFrameCopy);
|
||||
mp_msg(MSGT_MENCODER, MSGL_INFO, MSGTR_ACodecFramecopy,
|
||||
mux_a->wf->wFormatTag, mux_a->wf->nChannels, (long)mux_a->wf->nSamplesPerSec,
|
||||
mux_a->wf->wBitsPerSample, (long)mux_a->wf->nAvgBytesPerSec, (long)mux_a->h.dwSampleSize);
|
||||
mux_a->wf->wFormatTag, mux_a->wf->nChannels, mux_a->wf->nSamplesPerSec,
|
||||
mux_a->wf->wBitsPerSample, mux_a->wf->nAvgBytesPerSec, mux_a->h.dwSampleSize);
|
||||
if (sh_audio->wf) {
|
||||
if ((mux_a->wf->wFormatTag != sh_audio->wf->wFormatTag) ||
|
||||
(mux_a->wf->nChannels != sh_audio->wf->nChannels) ||
|
||||
(mux_a->wf->nSamplesPerSec != sh_audio->wf->nSamplesPerSec * playback_speed))
|
||||
{
|
||||
mp_msg(MSGT_MENCODER, MSGL_INFO, MSGTR_ACodecFramecopy,
|
||||
sh_audio->wf->wFormatTag, sh_audio->wf->nChannels, (long)(sh_audio->wf->nSamplesPerSec * playback_speed),
|
||||
sh_audio->wf->wBitsPerSample, (long)sh_audio->wf->nAvgBytesPerSec, 0L);
|
||||
sh_audio->wf->wFormatTag, sh_audio->wf->nChannels, (int)(sh_audio->wf->nSamplesPerSec * playback_speed),
|
||||
sh_audio->wf->wBitsPerSample, sh_audio->wf->nAvgBytesPerSec, 0);
|
||||
mp_msg(MSGT_MENCODER,MSGL_FATAL,MSGTR_AudioCopyFileMismatch);
|
||||
mencoder_exit(1,NULL);
|
||||
}
|
||||
@ -1001,8 +1001,8 @@ else {
|
||||
(mux_a->wf->nSamplesPerSec != sh_audio->samplerate * playback_speed))
|
||||
{
|
||||
mp_msg(MSGT_MENCODER, MSGL_INFO, MSGTR_ACodecFramecopy,
|
||||
sh_audio->wf->wFormatTag, sh_audio->wf->nChannels, (long)(sh_audio->wf->nSamplesPerSec * playback_speed),
|
||||
sh_audio->wf->wBitsPerSample, (long)sh_audio->wf->nAvgBytesPerSec, 0L);
|
||||
sh_audio->wf->wFormatTag, sh_audio->wf->nChannels, (int)(sh_audio->wf->nSamplesPerSec * playback_speed),
|
||||
sh_audio->wf->wBitsPerSample, sh_audio->wf->nAvgBytesPerSec, 0);
|
||||
mp_msg(MSGT_MENCODER,MSGL_FATAL,MSGTR_AudioCopyFileMismatch);
|
||||
mencoder_exit(1,NULL);
|
||||
}
|
||||
|
14
mplayer.c
14
mplayer.c
@ -1033,13 +1033,13 @@ static void log_sub(){
|
||||
if (!f) return;
|
||||
fprintf(f, "----------------------------------------------------------\n");
|
||||
if (subdata->sub_uses_time) {
|
||||
fprintf(f, "N: %s S: %02d:%02d:%02d.%02d E: %02d:%02d:%02d.%02d\n", filename,
|
||||
fprintf(f, "N: %s S: %02ld:%02ld:%02ld.%02ld E: %02ld:%02ld:%02ld.%02ld\n", filename,
|
||||
vo_sub_last->start/360000, (vo_sub_last->start/6000)%60,
|
||||
(vo_sub_last->start/100)%60, vo_sub_last->start%100,
|
||||
vo_sub_last->end/360000, (vo_sub_last->end/6000)%60,
|
||||
(vo_sub_last->end/100)%60, vo_sub_last->end%100);
|
||||
} else {
|
||||
fprintf(f, "N: %s S: %d E: %d\n", filename, vo_sub_last->start, vo_sub_last->end);
|
||||
fprintf(f, "N: %s S: %ld E: %ld\n", filename, vo_sub_last->start, vo_sub_last->end);
|
||||
}
|
||||
for (i = 0; i < vo_sub_last->lines; i++) {
|
||||
fprintf(f, "%s\n", vo_sub_last->text[i]);
|
||||
@ -2316,7 +2316,7 @@ if(identify) {
|
||||
if (sh_video) {
|
||||
/* Assume FOURCC if all bytes >= 0x20 (' ') */
|
||||
if (sh_video->format >= 0x20202020)
|
||||
mp_msg(MSGT_GLOBAL,MSGL_INFO,"ID_VIDEO_FORMAT=%.4s\n", &sh_video->format);
|
||||
mp_msg(MSGT_GLOBAL,MSGL_INFO,"ID_VIDEO_FORMAT=%.4s\n", (char *)&sh_video->format);
|
||||
else
|
||||
mp_msg(MSGT_GLOBAL,MSGL_INFO,"ID_VIDEO_FORMAT=0x%08X\n", sh_video->format);
|
||||
mp_msg(MSGT_GLOBAL,MSGL_INFO,"ID_VIDEO_BITRATE=%d\n", sh_video->i_bps*8);
|
||||
@ -2330,7 +2330,7 @@ if(identify) {
|
||||
mp_msg(MSGT_GLOBAL,MSGL_INFO, "ID_AUDIO_CODEC=%s\n", sh_audio->codec->name);
|
||||
/* Assume FOURCC if all bytes >= 0x20 (' ') */
|
||||
if (sh_audio->format >= 0x20202020)
|
||||
mp_msg(MSGT_GLOBAL,MSGL_INFO, "ID_AUDIO_FORMAT=%.4s\n", &sh_audio->format);
|
||||
mp_msg(MSGT_GLOBAL,MSGL_INFO, "ID_AUDIO_FORMAT=%.4s\n", (char *)&sh_audio->format);
|
||||
else
|
||||
mp_msg(MSGT_GLOBAL,MSGL_INFO,"ID_AUDIO_FORMAT=%d\n", sh_audio->format);
|
||||
mp_msg(MSGT_GLOBAL,MSGL_INFO,"ID_AUDIO_BITRATE=%d\n", sh_audio->i_bps*8);
|
||||
@ -3765,7 +3765,7 @@ if (stream->type==STREAMTYPE_DVDNAV && dvd_nav_still)
|
||||
{
|
||||
#ifdef USE_SUB
|
||||
if (sh_video) {
|
||||
mp_msg(MSGT_GLOBAL,MSGL_INFO, "ANS_SUB_VISIBILITY=%ld\n", sub_visibility);
|
||||
mp_msg(MSGT_GLOBAL,MSGL_INFO, "ANS_SUB_VISIBILITY=%d\n", sub_visibility);
|
||||
}
|
||||
#endif
|
||||
} break;
|
||||
@ -3893,11 +3893,11 @@ if (stream->type==STREAMTYPE_DVDNAV && dvd_nav_still)
|
||||
|
||||
case MP_CMD_GET_VO_FULLSCREEN : {
|
||||
if(video_out && vo_config_count)
|
||||
mp_msg(MSGT_GLOBAL,MSGL_INFO, "ANS_VO_FULLSCREEN=%ld\n", vo_fs);
|
||||
mp_msg(MSGT_GLOBAL,MSGL_INFO, "ANS_VO_FULLSCREEN=%d\n", vo_fs);
|
||||
} break;
|
||||
|
||||
case MP_CMD_GET_PERCENT_POS : {
|
||||
mp_msg(MSGT_GLOBAL,MSGL_INFO, "ANS_PERCENT_POSITION=%ld\n", demuxer_get_percent_pos(demuxer));
|
||||
mp_msg(MSGT_GLOBAL,MSGL_INFO, "ANS_PERCENT_POSITION=%d\n", demuxer_get_percent_pos(demuxer));
|
||||
} break;
|
||||
case MP_CMD_GET_TIME_POS : {
|
||||
float pos = 0;
|
||||
|
@ -1305,7 +1305,7 @@ vixConfigPlayback (vidix_playback_t * vinfo)
|
||||
|
||||
vinfo->frame_size = info->pitch * info->src_h;
|
||||
|
||||
printf("$#### destination pitch = %lu\n", info->pitch&0xffff);
|
||||
printf("$#### destination pitch = %u\n", info->pitch&0xffff);
|
||||
|
||||
|
||||
|
||||
@ -1469,7 +1469,7 @@ void debugout(unsigned int addr, unsigned int val){
|
||||
break;
|
||||
|
||||
}
|
||||
fprintf(stderr,":\t\t 0x%08X = %lu\n",val,val);
|
||||
fprintf(stderr,":\t\t 0x%08X = %u\n",val,val);
|
||||
}
|
||||
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user