mirror of
https://github.com/signalwire/freeswitch.git
synced 2026-07-23 12:42:02 +00:00
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:
committed by
Michael Jerris
parent
0cd5658caa
commit
22020c86cb
@@ -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;
|
||||
}
|
||||
|
||||
|
||||
@@ -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;
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user