mirror of
https://github.com/signalwire/freeswitch.git
synced 2025-04-15 16:39:14 +00:00
FS-7513: don't write 0 data, openh264 might return 0
This commit is contained in:
parent
7d60e6e868
commit
046798a057
@ -1593,6 +1593,11 @@ static void write_canvas_image_to_codec_group(conference_obj_t *conference, code
|
||||
if (encode_status == SWITCH_STATUS_SUCCESS || encode_status == SWITCH_STATUS_MORE_DATA) {
|
||||
|
||||
switch_assert((encode_status == SWITCH_STATUS_SUCCESS && frame->m) || !frame->m);
|
||||
|
||||
if (frame->datalen == 0) {
|
||||
continue;
|
||||
}
|
||||
|
||||
if (frame->timestamp) {
|
||||
switch_set_flag(frame, SFF_RAW_RTP_PARSE_FRAME);
|
||||
}
|
||||
|
@ -10392,7 +10392,9 @@ SWITCH_DECLARE(switch_status_t) switch_core_session_write_video_frame(switch_cor
|
||||
switch_core_session_video_reinit(session);
|
||||
frame->flags &= ~SFF_PICTURE_RESET;
|
||||
}
|
||||
|
||||
|
||||
if (frame->datalen == 0) continue;
|
||||
|
||||
switch_set_flag(frame, SFF_RAW_RTP_PARSE_FRAME);
|
||||
status = switch_core_session_write_encoded_video_frame(session, frame, flags, stream_id);
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user