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/avformat.h | 8 ++++++++ 1 file changed, 8 insertions(+) (limited to 'libavformat/avformat.h') diff --git a/libavformat/avformat.h b/libavformat/avformat.h index 470bbc6017..e441486d9c 100644 --- a/libavformat/avformat.h +++ b/libavformat/avformat.h @@ -688,6 +688,8 @@ typedef struct AVIndexEntry { */ #define AV_DISPOSITION_ATTACHED_PIC 0x0400 +typedef struct AVStreamInternal AVStreamInternal; + /** * Stream structure. * New fields can be added to the end with minor version bumps. @@ -878,6 +880,12 @@ typedef struct AVStream { support seeking natively. */ int nb_index_entries; unsigned int index_entries_allocated_size; + + /** + * An opaque field for libavformat internal usage. + * Must not be accessed in any way by callers. + */ + AVStreamInternal *internal; } AVStream; #define AV_PROGRAM_RUNNING 1 -- cgit v1.2.3