diff --git a/src/mod/codecs/mod_openh264/mod_openh264.cpp b/src/mod/codecs/mod_openh264/mod_openh264.cpp index 4c20d8c941..5019880928 100644 --- a/src/mod/codecs/mod_openh264/mod_openh264.cpp +++ b/src/mod/codecs/mod_openh264/mod_openh264.cpp @@ -42,7 +42,7 @@ #define FPS 20.0f // frame rate #define H264_NALU_BUFFER_SIZE 65536 #define MAX_NALUS 100 -#define SLICE_SIZE 1200 //NALU Slice Size +#define SLICE_SIZE SWITCH_DEFAULT_VIDEO_SIZE //NALU Slice Size SWITCH_MODULE_LOAD_FUNCTION(mod_openh264_load); SWITCH_MODULE_DEFINITION(mod_openh264, mod_openh264_load, NULL, NULL); diff --git a/src/mod/codecs/mod_vpx/mod_vpx.c b/src/mod/codecs/mod_vpx/mod_vpx.c index 066c23ed78..13d2382f84 100644 --- a/src/mod/codecs/mod_vpx/mod_vpx.c +++ b/src/mod/codecs/mod_vpx/mod_vpx.c @@ -39,7 +39,7 @@ #include #define FPS 15 -#define SLICE_SIZE 1200 +#define SLICE_SIZE SWITCH_DEFAULT_VIDEO_SIZE #define KEY_FRAME_MIN_FREQ 1000000 SWITCH_MODULE_LOAD_FUNCTION(mod_vpx_load);