[FFmpeg-devel] [PATCH v20 02/20] avutil/frame: Prepare AVFrame for subtitle handling

Hendrik Leppkes h.leppkes at gmail.com
Sun Dec 5 18:44:51 EET 2021


On Sun, Dec 5, 2021 at 5:40 PM Lynne <dev at lynne.ee> wrote:
> > +    /**
> > +     * Usually the same as packet pts, in AV_TIME_BASE.
> > +     *
> > +     * @deprecated This is kept for compatibility reasons and corresponds to
> > +     * AVSubtitle->pts. Might be removed in the future.
> > +     */
> > +    int64_t subtitle_pts;
> >
>
> I'm not going to accept a field which is instantly deprecated.
> As we've discussed multiple times, please merge this into
> the regular frame PTS field. We already have _2_ necessary
> stard/end fields.
>

I agree with this entirely. Even ignoring the fact that adding a new
field thats deprecated is instantly a disqualification, AVSubtitle had
one pts field, AVFrame already has one pts field - both are even
documented to have the same semantic. They should just contain the
exact same data, thats how you achieve compatibility, not by claiming
you need a new field for compatibility reasons.

- Hendrik


More information about the ffmpeg-devel mailing list