ffmpeg | branch: master | Marton Balint <c...@passwd.hu> | Sat Aug 25 20:42:55 
2018 +0200| [9fee22dbddb66fc6818c9a21879731c42de9d3e3] | committer: Marton 
Balint

ffplay: do not drain existing filters when seeking

After a seek we drop all frames from the filter anyway. Audio filters already
had a similar approach.

Signed-off-by: Marton Balint <c...@passwd.hu>

> http://git.videolan.org/gitweb.cgi/ffmpeg.git/?a=commit;h=9fee22dbddb66fc6818c9a21879731c42de9d3e3
---

 fftools/ffplay.c | 2 ++
 1 file changed, 2 insertions(+)

diff --git a/fftools/ffplay.c b/fftools/ffplay.c
index 368e262123..5d9121e5b7 100644
--- a/fftools/ffplay.c
+++ b/fftools/ffplay.c
@@ -2211,6 +2211,8 @@ static int video_thread(void *arg)
             ret = queue_picture(is, frame, pts, duration, frame->pkt_pos, 
is->viddec.pkt_serial);
             av_frame_unref(frame);
 #if CONFIG_AVFILTER
+            if (is->videoq.serial != is->viddec.pkt_serial)
+                break;
         }
 #endif
 

_______________________________________________
ffmpeg-cvslog mailing list
ffmpeg-cvslog@ffmpeg.org
http://ffmpeg.org/mailman/listinfo/ffmpeg-cvslog

Reply via email to