FS-9151 FS-9631 #resolve

This commit is contained in:
Seven Du 2016-10-24 08:10:36 +08:00
parent a393604db5
commit 15f33e532b
1 changed files with 1 additions and 1 deletions

View File

@ -1479,7 +1479,7 @@ static void *SWITCH_THREAD_FUNC file_read_thread_run(switch_thread_t *thread, vo
pkt.data = NULL;
pkt.size = 0;
if (context->video_st.st && (error = av_read_frame(context->fc, &pkt)) < 0) {
if ((error = av_read_frame(context->fc, &pkt)) < 0) {
if (error == AVERROR_EOF) {
if (!context->has_video) break;