From 8de1ee9f725aa3c550f425bd3120bcd95d5b2ea8 Mon Sep 17 00:00:00 2001 From: Anton Khirnov Date: Wed, 7 Oct 2015 15:51:11 +0200 Subject: lavf: deprecate compute_pkt_fields2 All encoders set pts and dts properly now (and have been doing that for a while), so there is no good reason to do any timestamp guessing in the muxer. The newly added AVStreamInternal will be later used for storing all the private fields currently living in AVStream. --- libavformat/internal.h | 12 ++++++++++++ 1 file changed, 12 insertions(+) (limited to 'libavformat/internal.h') diff --git a/libavformat/internal.h b/libavformat/internal.h index a65a3b7f13..7bbf7755cf 100644 --- a/libavformat/internal.h +++ b/libavformat/internal.h @@ -90,6 +90,18 @@ struct AVFormatInternal { * Timebase for the timestamp offset. */ AVRational offset_timebase; + +#if FF_API_COMPUTE_PKT_FIELDS2 + int missing_ts_warning; +#endif +}; + +struct AVStreamInternal { + /** + * Set to 1 if the codec allows reordering, so pts can be different + * from dts. + */ + int reorder; }; void ff_dynarray_add(intptr_t **tab_ptr, int *nb_ptr, intptr_t elem); -- cgit v1.2.3