Created
November 19, 2014 16:50
-
-
Save seven1240/26827bf5ccfd85e00142 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
diff --git a/src/mod/codecs/mod_vpx/mod_vpx.c b/src/mod/codecs/mod_vpx/mod_vpx.c | |
index ee7f7f6..0e91e7e 100644 | |
--- a/src/mod/codecs/mod_vpx/mod_vpx.c | |
+++ b/src/mod/codecs/mod_vpx/mod_vpx.c | |
@@ -409,6 +409,7 @@ static switch_status_t switch_vpx_encode(switch_codec_t *codec, switch_frame_t * | |
context->encoder.err, context->encoder.err_detail); | |
frame->datalen = 0; | |
+ frame->m = 1; | |
return SWITCH_STATUS_FALSE; | |
} | |
diff --git a/src/switch_core_media.c b/src/switch_core_media.c | |
index 0549ef5..4bf2d81 100644 | |
--- a/src/switch_core_media.c | |
+++ b/src/switch_core_media.c | |
@@ -9489,14 +9489,14 @@ SWITCH_DECLARE(switch_status_t) switch_core_session_write_video_frame(switch_cor | |
} | |
switch_set_flag(frame, SFF_RAW_RTP_PARSE_FRAME); | |
- | |
+ | |
status = raw_write_video(session, frame, flags, stream_id); | |
if (status == SWITCH_STATUS_SUCCESS && session->image_write_callback) { | |
session->image_write_callback(session, frame, img, session->image_write_callback_user_data); | |
} | |
- } while(frame->datalen); | |
+ } while(!frame->m); | |
return status; |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment