提交 c7166926 authored 作者: Anthony Minessale's avatar Anthony Minessale

typo from last commit

上级 385a3b54
...@@ -1578,10 +1578,6 @@ static switch_status_t av_file_read(switch_file_handle_t *handle, void *data, si ...@@ -1578,10 +1578,6 @@ static switch_status_t av_file_read(switch_file_handle_t *handle, void *data, si
av_file_context_t *context = (av_file_context_t *)handle->private_info; av_file_context_t *context = (av_file_context_t *)handle->private_info;
int size; int size;
if ((flags & SVR_CHECK)) {
return SWITCH_STATUS_BREAK;
}
if (!context->has_audio && context->has_video && switch_queue_size(context->eh.video_queue) > 0) { if (!context->has_audio && context->has_video && switch_queue_size(context->eh.video_queue) > 0) {
memset(data, 0, *len * handle->channels * 2); memset(data, 0, *len * handle->channels * 2);
return SWITCH_STATUS_SUCCESS; return SWITCH_STATUS_SUCCESS;
...@@ -1722,6 +1718,10 @@ static switch_status_t av_file_read_video(switch_file_handle_t *handle, switch_f ...@@ -1722,6 +1718,10 @@ static switch_status_t av_file_read_video(switch_file_handle_t *handle, switch_f
if (!context->has_video) return SWITCH_STATUS_FALSE; if (!context->has_video) return SWITCH_STATUS_FALSE;
if ((flags & SVR_CHECK)) {
return SWITCH_STATUS_BREAK;
}
if (flags & SVR_FLUSH) max_delta = 0.02 * AV_TIME_BASE; if (flags & SVR_FLUSH) max_delta = 0.02 * AV_TIME_BASE;
if (context->last_img) { if (context->last_img) {
......
Markdown 格式
0%
您添加了 0 到此讨论。请谨慎行事。
请先完成此评论的编辑!
注册 或者 后发表评论