Commit e78016b0 authored by xiaofeng's avatar xiaofeng Committed by Michael Niedermayer

ffmpeg: break loop when dts_heuristic check done

Signed-off-by: 's avatarMichael Niedermayer <michael@niedermayer.cc>
parent c0ee4e0a
...@@ -1149,8 +1149,10 @@ static int open_input_file(OptionsContext *o, const char *filename) ...@@ -1149,8 +1149,10 @@ static int open_input_file(OptionsContext *o, const char *filename)
int dts_heuristic = 0; int dts_heuristic = 0;
for (i=0; i<ic->nb_streams; i++) { for (i=0; i<ic->nb_streams; i++) {
const AVCodecParameters *par = ic->streams[i]->codecpar; const AVCodecParameters *par = ic->streams[i]->codecpar;
if (par->video_delay) if (par->video_delay) {
dts_heuristic = 1; dts_heuristic = 1;
break;
}
} }
if (dts_heuristic) { if (dts_heuristic) {
seek_timestamp -= 3*AV_TIME_BASE / 23; seek_timestamp -= 3*AV_TIME_BASE / 23;
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment