提交 23410ab9 authored 作者: Seven Du's avatar Seven Du 提交者: Michael Jerris

FS-7514: use a larger and not hardcoded buffer for video packet

上级 97006429
...@@ -105,7 +105,7 @@ struct vlc_video_context { ...@@ -105,7 +105,7 @@ struct vlc_video_context {
switch_channel_t *channel; switch_channel_t *channel;
switch_frame_t *aud_frame; switch_frame_t *aud_frame;
switch_frame_t *vid_frame; switch_frame_t *vid_frame;
uint8_t video_packet[1500 + 12]; uint8_t video_packet[SWITCH_RECOMMENDED_BUFFER_SIZE];
void *raw_yuyv_data; void *raw_yuyv_data;
switch_image_t *img; switch_image_t *img;
switch_payload_t pt; switch_payload_t pt;
...@@ -658,7 +658,6 @@ SWITCH_STANDARD_APP(play_video_function) ...@@ -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); 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->session = session;
context->channel = channel; context->channel = channel;
context->pool = pool; context->pool = pool;
......
Markdown 格式
0%
您添加了 0 到此讨论。请谨慎行事。
请先完成此评论的编辑!
注册 或者 后发表评论