From af7577195a0929c0b7eccf18d1d17f2ea7f0ed70 Mon Sep 17 00:00:00 2001 From: Seven Du Date: Mon, 24 Oct 2016 08:10:36 +0800 Subject: [PATCH] FS-9151 FS-9631 #resolve --- src/mod/applications/mod_av/avformat.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/mod/applications/mod_av/avformat.c b/src/mod/applications/mod_av/avformat.c index 883a5be51f..9274a68026 100644 --- a/src/mod/applications/mod_av/avformat.c +++ b/src/mod/applications/mod_av/avformat.c @@ -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;