[MPlayer-cvslog] r36757 - in trunk: libmpcodecs/ad_libdv.c libmpcodecs/ae_lame.c libmpdemux/demux_rawdv.c

reimar subversion at mplayerhq.hu
Sun Jan 26 19:59:16 CET 2014


Author: reimar
Date: Sun Jan 26 19:59:16 2014
New Revision: 36757

Log:
Fix some format string mismatches.

Modified:
   trunk/libmpcodecs/ad_libdv.c
   trunk/libmpcodecs/ae_lame.c
   trunk/libmpdemux/demux_rawdv.c

Modified: trunk/libmpcodecs/ad_libdv.c
==============================================================================
--- trunk/libmpcodecs/ad_libdv.c	Sun Jan 26 19:59:15 2014	(r36756)
+++ trunk/libmpcodecs/ad_libdv.c	Sun Jan 26 19:59:16 2014	(r36757)
@@ -103,7 +103,7 @@ static int decode_audio(sh_audio_t *audi
 
    if(xx!=decoder->frame_size)
        mp_msg(MSGT_GLOBAL,MSGL_WARN,MSGTR_MPCODECS_AudioFramesizeDiffers,
-           xx, decoder->frame_size);
+           xx, (int)decoder->frame_size);
 
    if (dv_decode_full_audio(decoder, dv_audio_frame,(int16_t**) audioBuffers))
    {

Modified: trunk/libmpcodecs/ae_lame.c
==============================================================================
--- trunk/libmpcodecs/ae_lame.c	Sun Jan 26 19:59:15 2014	(r36756)
+++ trunk/libmpcodecs/ae_lame.c	Sun Jan 26 19:59:16 2014	(r36757)
@@ -94,7 +94,7 @@ static int bind_lame(audio_encoder_t *en
     mux_a->h.dwSampleSize=0; // VBR
     mux_a->h.dwRate=encoder->params.sample_rate;
     mux_a->h.dwScale=encoder->params.samples_per_frame; // samples/frame
-    if(sizeof(MPEGLAYER3WAVEFORMAT)!=30) mp_msg(MSGT_MENCODER,MSGL_WARN,MSGTR_MP3WaveFormatSizeNot30,sizeof(MPEGLAYER3WAVEFORMAT));
+    if(sizeof(MPEGLAYER3WAVEFORMAT)!=30) mp_msg(MSGT_MENCODER,MSGL_WARN,MSGTR_MP3WaveFormatSizeNot30,(int)sizeof(MPEGLAYER3WAVEFORMAT));
     mux_a->wf=malloc(sizeof(MPEGLAYER3WAVEFORMAT)); // should be 30
     mux_a->wf->wFormatTag=0x55; // MP3
     mux_a->wf->nChannels= (lame_param_mode<0) ? encoder->params.channels : ((lame_param_mode==3) ? 1 : 2);

Modified: trunk/libmpdemux/demux_rawdv.c
==============================================================================
--- trunk/libmpdemux/demux_rawdv.c	Sun Jan 26 19:59:15 2014	(r36756)
+++ trunk/libmpdemux/demux_rawdv.c	Sun Jan 26 19:59:16 2014	(r36757)
@@ -183,7 +183,7 @@ static demuxer_t* demux_open_rawdv(demux
 
    sh_video->disp_w = dv_decoder->width;
    sh_video->disp_h = dv_decoder->height;
-   mp_msg(MSGT_DEMUXER,MSGL_V,"demux_open_rawdv() frame_size: %d w: %d h: %d dif_seq: %d system: %d\n",dv_decoder->frame_size,dv_decoder->width, dv_decoder->height,dv_decoder->num_dif_seqs,dv_decoder->system);
+   mp_msg(MSGT_DEMUXER,MSGL_V,"demux_open_rawdv() frame_size: %d w: %d h: %d dif_seq: %d system: %d\n",(int)dv_decoder->frame_size,dv_decoder->width, dv_decoder->height,dv_decoder->num_dif_seqs,dv_decoder->system);
 
    sh_video->fps= (dv_decoder->system==e_dv_system_525_60?29.97:25);
    sh_video->frametime = 1.0/sh_video->fps;
@@ -204,7 +204,7 @@ static demuxer_t* demux_open_rawdv(demux
    frames->frame_size=dv_decoder->frame_size;
    frames->frame_number=demuxer->stream->end_pos/frames->frame_size;
 
-   mp_msg(MSGT_DEMUXER,MSGL_V,"demux_open_rawdv() seek to %llu, size: %d, dv_dec->frame_size: %d\n",frames->current_filepos,frames->frame_size, dv_decoder->frame_size);
+   mp_msg(MSGT_DEMUXER,MSGL_V,"demux_open_rawdv() seek to %llu, size: %d, dv_dec->frame_size: %d\n",(long long unsigned)frames->current_filepos,frames->frame_size, (int)dv_decoder->frame_size);
     if (dv_decoder->audio != NULL && demuxer->audio->id>=-1){
        sh_audio_t *sh_audio =  new_sh_audio(demuxer, 0, NULL);
        demuxer->audio->id = 0;


More information about the MPlayer-cvslog mailing list