From 23410ab94ac8f62f9fce8dd3f94e262c2d620a30 Mon Sep 17 00:00:00 2001 From: Seven Du Date: Thu, 4 Dec 2014 12:12:06 +0800 Subject: [PATCH] FS-7514: use a larger and not hardcoded buffer for video packet --- src/mod/formats/mod_vlc/mod_vlc.c | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/src/mod/formats/mod_vlc/mod_vlc.c b/src/mod/formats/mod_vlc/mod_vlc.c index 1cda424d1b..09d4215bce 100644 --- a/src/mod/formats/mod_vlc/mod_vlc.c +++ b/src/mod/formats/mod_vlc/mod_vlc.c @@ -105,7 +105,7 @@ struct vlc_video_context { switch_channel_t *channel; switch_frame_t *aud_frame; switch_frame_t *vid_frame; - uint8_t video_packet[1500 + 12]; + uint8_t video_packet[SWITCH_RECOMMENDED_BUFFER_SIZE]; void *raw_yuyv_data; switch_image_t *img; switch_payload_t pt; @@ -658,7 +658,6 @@ SWITCH_STANDARD_APP(play_video_function) audio_datalen = read_impl.decoded_bytes_per_packet; //codec.implementation->actual_samples_per_second / 1000 * (read_impl.microseconds_per_packet / 1000); - context->session = session; context->channel = channel; context->pool = pool;