[FFmpeg-cvslog] ffmpeg: break loop when dts_heuristic check done

xiaofeng git at videolan.org
Sun Sep 30 23:25:30 EEST 2018


ffmpeg | branch: master | xiaofeng <wasphin at gmail.com> | Sun Sep 30 20:16:22 2018 +0800| [e78016b04a719e7f7554fab6318ee93351f2f27d] | committer: Michael Niedermayer

ffmpeg: break loop when dts_heuristic check done

Signed-off-by: Michael Niedermayer <michael at niedermayer.cc>

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

 fftools/ffmpeg_opt.c | 4 +++-
 1 file changed, 3 insertions(+), 1 deletion(-)

diff --git a/fftools/ffmpeg_opt.c b/fftools/ffmpeg_opt.c
index c44ed63730..d4851a2cd8 100644
--- a/fftools/ffmpeg_opt.c
+++ b/fftools/ffmpeg_opt.c
@@ -1149,8 +1149,10 @@ static int open_input_file(OptionsContext *o, const char *filename)
             int dts_heuristic = 0;
             for (i=0; i<ic->nb_streams; i++) {
                 const AVCodecParameters *par = ic->streams[i]->codecpar;
-                if (par->video_delay)
+                if (par->video_delay) {
                     dts_heuristic = 1;
+                    break;
+                }
             }
             if (dts_heuristic) {
                 seek_timestamp -= 3*AV_TIME_BASE / 23;



More information about the ffmpeg-cvslog mailing list