summaryrefslogtreecommitdiff
path: root/libavformat/avformat.h
diff options
context:
space:
mode:
authorReimar Döffinger <Reimar.Doeffinger@gmx.de>2012-04-14 00:17:30 +0200
committerReimar Döffinger <Reimar.Doeffinger@gmx.de>2012-04-16 22:13:11 +0200
commit4a95876f4df29f69dca45da4013b276cb2dd4cc6 (patch)
tree378a690ccdba3bc8c6ec03c16e44aeeff09bc032 /libavformat/avformat.h
parent4fa706a4a64f9e06b08c1a42a62893ff2f7de82f (diff)
Add skip_to_keyframe stream variable.
This replaces the matroskadec one with the same name. The advantage is not only easier reuse in other demuxers but also that we can make the decisions after the parser. This fixes seeking in files that mark the keyframes incorrectly, for example the file in track ticket #1003. The matroska variable is still kept to be able to complain about such broken files. Signed-off-by: Reimar Döffinger <Reimar.Doeffinger@gmx.de>
Diffstat (limited to 'libavformat/avformat.h')
-rw-r--r--libavformat/avformat.h5
1 files changed, 5 insertions, 0 deletions
diff --git a/libavformat/avformat.h b/libavformat/avformat.h
index 5a11fdcc9f..d2727d4d1d 100644
--- a/libavformat/avformat.h
+++ b/libavformat/avformat.h
@@ -787,6 +787,11 @@ typedef struct AVStream {
* NOT PART OF PUBLIC API
*/
int request_probe;
+ /**
+ * Indicates that everything up to the next keyframe
+ * should be discarded.
+ */
+ int skip_to_keyframe;
} AVStream;
#define AV_PROGRAM_RUNNING 1