Commit 2de2b991 authored by Michael Niedermayer's avatar Michael Niedermayer

Merge commit 'dc40d886'

* commit 'dc40d886':
  avconv: do not use poorly defined and undocumented AVStream.pts

Conflicts:
	ffmpeg.c
Merged-by: 's avatarMichael Niedermayer <michaelni@gmx.at>
parents 3791741c dc40d886
......@@ -1102,7 +1102,7 @@ static void do_video_stats(OutputStream *ost, int frame_size)
fprintf(vstats_file,"f_size= %6d ", frame_size);
/* compute pts value */
ti1 = ost->st->pts.val * av_q2d(enc->time_base);
ti1 = ost->last_mux_dts * av_q2d(enc->time_base);
if (ti1 < 0.01)
ti1 = 0.01;
......@@ -1414,8 +1414,8 @@ static void print_report(int is_last_report, int64_t timer_start, int64_t cur_ti
vid = 1;
}
/* compute min output value */
if (ost->st->pts.val != AV_NOPTS_VALUE)
pts = FFMAX(pts, av_rescale_q(ost->st->pts.val,
if (ost->last_mux_dts != AV_NOPTS_VALUE)
pts = FFMAX(pts, av_rescale_q(ost->last_mux_dts,
ost->st->time_base, AV_TIME_BASE_Q));
}
......
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