History

avconv: do not use poorly defined and undocumented AVStream.pts

Use OutputStream.last_mux_dts as an approximation of 'current' output time instead.

Anton Khirnov committed 12 years ago

Commit dc40d881 parent c9f88091 file · +1 −1Browse files

Unified · Split

avconv.c+1−1
@@ -955,7 +955,7 @@ static void print_report(int is_last_report, int64_t timer_start) · 954 unmodified lines
955 vid = 1;955 vid = 1;
956 }956 }
957 /* compute min output value */957 /* compute min output value */
958 pts = (double)ost->st->pts.val * av_q2d(ost->st->time_base);958 pts = (double)ost->last_mux_dts * av_q2d(ost->st->time_base);
959 if ((pts < ti1) && (pts > 0))959 if ((pts < ti1) && (pts > 0))
960 ti1 = pts;960 ti1 = pts;
961 }961 }

Keyboard shortcuts

General

Show keyboard shortcuts
?
Focus the current search
/

Issues and pull requests

Open filters
f

Issues, pull requests and Inbox

Select next item
j↓
Select previous item
k↑
Open selected item
Enter
Dismiss filters or clear selection
Esc

Repository code

Go to file
t