On 02/05/2012 03:50 PM, Anton Khirnov wrote: > --- > avconv.c | 4 ++++ > 1 files changed, 4 insertions(+), 0 deletions(-) > > diff --git a/avconv.c b/avconv.c > index 4c29450..b014149 100644 > --- a/avconv.c > +++ b/avconv.c > @@ -2123,6 +2123,10 @@ static int output_packet(InputStream *ist, > ret = transcode_video (ist, &avpkt, &got_output, &pkt_pts); > if (avpkt.duration) > ist->next_dts += av_rescale_q(avpkt.duration, > ist->st->time_base, AV_TIME_BASE_Q); > + else if (ist->st->r_frame_rate.num) > + ist->next_dts += av_rescale_q(1, > (AVRational){ist->st->r_frame_rate.den, > + > ist->st->r_frame_rate.num}, > + AV_TIME_BASE_Q); > else if (ist->st->codec->time_base.num != 0) { > int ticks = ist->st->parser ? > ist->st->parser->repeat_pict + 1 : > > ist->st->codec->ticks_per_frame;
This does seem like a better way to guess frame duration in the absence of other information, so I think the patch looks ok. -Justin _______________________________________________ libav-devel mailing list libav-devel@libav.org https://lists.libav.org/mailman/listinfo/libav-devel