FS-7500: add SFF_USE_VIDEO_TIMESTAMP to tell video write frame if it needs to use a timer or not for timestamps

This commit is contained in:
Anthony Minessale
2014-11-18 17:36:55 -06:00
committed by Michael Jerris
parent 0cd5658caa
commit 22020c86cb
4 changed files with 18 additions and 11 deletions
+3 -1
View File
@@ -553,7 +553,9 @@ end:
switch_set_flag(frame, SFF_WAIT_KEY_FRAME);
}
if (!frame->img) {
if (frame->img) {
switch_set_flag(frame, SFF_USE_VIDEO_TIMESTAMP);
} else {
status = SWITCH_STATUS_MORE_DATA;
}
+3 -1
View File
@@ -553,7 +553,9 @@ end:
switch_buffer_zero(context->vpx_packet_buffer);
}
if (!frame->img) {
if (frame->img) {
switch_set_flag(frame, SFF_USE_VIDEO_TIMESTAMP);
} else {
status = SWITCH_STATUS_MORE_DATA;
}