]> git.ipfire.org Git - thirdparty/freeswitch.git/commitdiff
FS-9151 #resolve
authorSeven Du <dujinfang@gmail.com>
Wed, 11 May 2016 06:49:21 +0000 (14:49 +0800)
committerSeven Du <dujinfang@gmail.com>
Wed, 11 May 2016 06:49:21 +0000 (14:49 +0800)
src/mod/applications/mod_av/avformat.c

index 347ca8f7327cecc327befa98d685c48f4816a420..7d0ca45815e117c5336027618d90c560ceab9df1 100644 (file)
@@ -1459,6 +1459,8 @@ static void *SWITCH_THREAD_FUNC file_read_thread_run(switch_thread_t *thread, vo
 
                if (context->video_st.st && (error = av_read_frame(context->fc, &pkt)) < 0) {
                        if (error == AVERROR_EOF) {
+                               if (!context->has_video) break;
+
                                eof = 1;
                                /* just make sure*/
                                pkt.data = NULL;