From: Seven Du Date: Mon, 4 May 2015 18:44:49 +0000 (+0800) Subject: FS-7519: this works on both Mac and debian X-Git-Tag: v1.6.2~614^2~77 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=319f09c98b2f0e63880933632dc8afcee2041e0c;p=thirdparty%2Ffreeswitch.git FS-7519: this works on both Mac and debian --- diff --git a/src/mod/formats/mod_avformat/mod_avformat.c b/src/mod/formats/mod_avformat/mod_avformat.c index 5bb1cb010e..303f1c5a3a 100644 --- a/src/mod/formats/mod_avformat/mod_avformat.c +++ b/src/mod/formats/mod_avformat/mod_avformat.c @@ -1907,7 +1907,7 @@ again: if (0) goto again; if (pts == 0) mst->next_pts = 0; if (mst->next_pts && switch_micro_time_now() - mst->next_pts > AV_TIME_BASE) { - switch_log_printf(SWITCH_CHANNEL_LOG, SWITCH_LOG_WARNING, "picture is too late, diff: %ld queue size:%u\n", switch_micro_time_now() - mst->next_pts, switch_queue_size(context->eh.video_queue)); + switch_log_printf(SWITCH_CHANNEL_LOG, SWITCH_LOG_WARNING, "picture is too late, diff: %" SWITCH_INT64_T_FMT " queue size:%u\n", (int64_t)(switch_micro_time_now() - mst->next_pts), switch_queue_size(context->eh.video_queue)); switch_img_free(&img); // return SWITCH_STATUS_BREAK; goto again;