diff options
author | Anton Khirnov <anton@khirnov.net> | 2015-10-07 15:51:11 +0200 |
---|---|---|
committer | Anton Khirnov <anton@khirnov.net> | 2015-11-09 07:50:55 +0100 |
commit | 8de1ee9f725aa3c550f425bd3120bcd95d5b2ea8 (patch) | |
tree | 02713fb01e304fd76208ab4e5934eb72a5ef4db5 /libavformat/internal.h | |
parent | aeda1121c91395d1f0d434bc7f227423aa2ff97d (diff) | |
download | ffmpeg-8de1ee9f725aa3c550f425bd3120bcd95d5b2ea8.tar.gz |
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.
Diffstat (limited to 'libavformat/internal.h')
-rw-r--r-- | libavformat/internal.h | 12 |
1 files changed, 12 insertions, 0 deletions
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); |