From: Seven Du Date: Mon, 24 Oct 2016 00:10:36 +0000 (+0800) Subject: FS-9151 FS-9631 #resolve X-Git-Tag: v1.8.0~1164 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=15f33e532bed18596bcb0e5df96b15bd77cebfa4;p=thirdparty%2Ffreeswitch.git FS-9151 FS-9631 #resolve --- diff --git a/src/mod/applications/mod_av/avformat.c b/src/mod/applications/mod_av/avformat.c index 04d35096e1..a1fc0069b7 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;