switch_status_t status = SWITCH_STATUS_FALSE;
switch_time_t now = switch_micro_time_now();
switch_codec_t *codec = switch_core_session_get_video_write_codec(session);
- //switch_timer_t *timer;
+ switch_timer_t *timer;
switch_media_handle_t *smh;
switch_image_t *dup_img = NULL, *img = frame->img;
switch_status_t encode_status;
frame = &write_frame;
frame->img = img;
-#if 0
+
if (!switch_test_flag(frame, SFF_USE_VIDEO_TIMESTAMP)) {
if (!(timer = switch_core_media_get_timer(session, SWITCH_MEDIA_TYPE_VIDEO))) {
frame->timestamp = timer->samplecount;
}
-#endif
+
switch_clear_flag(frame, SFF_SAME_IMAGE);
frame->m = 0;
if (switch_channel_media_up(b_channel)) {
- switch_set_flag(read_frame, SFF_PROXY_PACKET);
if (switch_core_session_write_video_frame(vh->session_b, read_frame, SWITCH_IO_FLAG_NONE, 0) != SWITCH_STATUS_SUCCESS) {
switch_cond_next();
continue;