summaryrefslogtreecommitdiff
path: root/libavformat/avformat.h
diff options
context:
space:
mode:
authorAnton Khirnov <anton@khirnov.net>2015-10-07 15:51:11 +0200
committerAnton Khirnov <anton@khirnov.net>2015-11-09 07:50:55 +0100
commit8de1ee9f725aa3c550f425bd3120bcd95d5b2ea8 (patch)
tree02713fb01e304fd76208ab4e5934eb72a5ef4db5 /libavformat/avformat.h
parentaeda1121c91395d1f0d434bc7f227423aa2ff97d (diff)
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/avformat.h')
-rw-r--r--libavformat/avformat.h8
1 files changed, 8 insertions, 0 deletions
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