set marker and ts, some endpoints depending on the marker bit to render correct video

This commit is contained in:
Seven Du 2012-07-15 18:48:51 +08:00
parent 748c15221b
commit 5a0d9514db
1 changed files with 2 additions and 0 deletions

View File

@ -411,6 +411,8 @@ SWITCH_STANDARD_APP(play_fsv_function)
if (switch_channel_test_flag(channel, CF_VIDEO)) {
switch_byte_t *data = (switch_byte_t *) vid_frame.packet;
vid_frame.m = hdr->m;
vid_frame.timestamp = ts;
vid_frame.data = data + 12;
vid_frame.datalen = vid_frame.packetlen - 12;
switch_core_session_write_video_frame(session, &vid_frame, SWITCH_IO_FLAG_NONE, 0);