summaryrefslogtreecommitdiff
path: root/libavcodec/avcodec.h
diff options
context:
space:
mode:
authorVignesh Venkatasubramanian <vigneshv@google.com>2013-10-14 07:41:16 -0700
committerMichael Niedermayer <michaelni@gmx.at>2013-10-14 18:46:12 +0200
commit0f99aad80f656c1bb0fca8034f17447dfc7a1876 (patch)
tree155c0710eb4ccb35c25ac42e7b72ba563f1bd36d /libavcodec/avcodec.h
parentf7ed044eeaf39c73333d3cc01d07b07d9bc860c6 (diff)
lavc: Adding seek_preroll to AVCodecContext
seek_preroll field is added to the AVCodecContext struct. It indicates the number of samples to be discarded whenever there is a discontinuity. The minor version is bumped accordingly. Signed-off-by: Vignesh Venkatasubramanian <vigneshv@google.com> Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
Diffstat (limited to 'libavcodec/avcodec.h')
-rw-r--r--libavcodec/avcodec.h10
1 files changed, 10 insertions, 0 deletions
diff --git a/libavcodec/avcodec.h b/libavcodec/avcodec.h
index 0b23b64fb1..b64331d398 100644
--- a/libavcodec/avcodec.h
+++ b/libavcodec/avcodec.h
@@ -2882,6 +2882,13 @@ typedef struct AVCodecContext {
* - encoding: unused
*/
int skip_alpha;
+
+ /**
+ * Number of samples to skip after a discontinuity
+ * - decoding: unused
+ * - encoding: set by libavcodec
+ */
+ int seek_preroll;
} AVCodecContext;
AVRational av_codec_get_pkt_timebase (const AVCodecContext *avctx);
@@ -2893,6 +2900,9 @@ void av_codec_set_codec_descriptor(AVCodecContext *avctx, co
int av_codec_get_lowres(const AVCodecContext *avctx);
void av_codec_set_lowres(AVCodecContext *avctx, int val);
+int av_codec_get_seek_preroll(const AVCodecContext *avctx);
+void av_codec_set_seek_preroll(AVCodecContext *avctx, int val);
+
/**
* AVProfile.
*/