FS-7500: use SWITCH_DEFAULT_VIDEO_SIZE as slice size

This commit is contained in:
Seven Du 2014-11-20 22:40:27 +08:00 committed by Michael Jerris
parent 3c7fc85a31
commit aa654da777
2 changed files with 2 additions and 2 deletions

View File

@ -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);

View File

@ -39,7 +39,7 @@
#include <vpx/vp8.h>
#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);