]> git.ipfire.org Git - thirdparty/freeswitch.git/commitdiff
FS-9151 FS-9631 #resolve
authorSeven Du <dujinfang@gmail.com>
Mon, 24 Oct 2016 00:10:36 +0000 (08:10 +0800)
committerSeven Du <dujinfang@gmail.com>
Mon, 24 Oct 2016 00:10:36 +0000 (08:10 +0800)
src/mod/applications/mod_av/avformat.c

index 04d35096e1c34fa39a043cde43182f72c7c678c2..a1fc0069b7d14d6553a362e45b64323b4c303d7e 100644 (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;