summaryrefslogtreecommitdiff
path: root/libavformat/avformat.h
diff options
context:
space:
mode:
authorwm4 <nfxjfg@googlemail.com>2015-04-22 12:24:36 +0200
committerMichael Niedermayer <michaelni@gmx.at>2015-04-22 14:05:46 +0200
commit7dd8bf53bdb5669a7c65822417fe29036435b40f (patch)
treef8a077180fcad39c49dc349147fc038b8a3f63f8 /libavformat/avformat.h
parentafc7748d1f6abc4b3b1cc957b0fa6941837db3d0 (diff)
avformat: add common mechanism for skipping samples at the start of file
This makes using the generic indexing code with mp3 easier at a later point. Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
Diffstat (limited to 'libavformat/avformat.h')
-rw-r--r--libavformat/avformat.h9
1 files changed, 9 insertions, 0 deletions
diff --git a/libavformat/avformat.h b/libavformat/avformat.h
index 514e64626d..c2f798d649 100644
--- a/libavformat/avformat.h
+++ b/libavformat/avformat.h
@@ -1083,6 +1083,15 @@ typedef struct AVStream {
int skip_samples;
/**
+ * If not 0, the number of samples that should be skipped from the start of
+ * the stream (the samples are removed from packets with pts==0, which also
+ * assumes negative timestamps do not happen).
+ * Intended for use with formats such as mp3 with ad-hoc gapless audio
+ * support.
+ */
+ int64_t start_skip_samples;
+
+ /**
* If not 0, the first audio sample that should be discarded from the stream.
* This is broken by design (needs global sample count), but can't be
* avoided for broken by design formats such as mp3 with ad-hoc gapless