> > > >> have a reasonable value even if the next dts is AV_NOPTS_VALUE.
> > > >> an acceptable average rate).
> > > >> Would ist->pts be a better solution?
> > > Ok; thanks for the clarification.
> > > might be just confused :).
> > > work for some input containers/codecs - flv, if I remember well).
> > > ffmpeg (but this is just my opinion).
> > unless that works less well.
> think it was the same without the fix).
> I'll send an updated patch this night.
rather than set it only for the first video stream encountered.