aboutsummaryrefslogtreecommitdiffstats
path: root/libavcodec/avcodec.h
diff options
context:
space:
mode:
authorMichael Niedermayer <michael@niedermayer.cc>2019-09-02 23:17:57 +0200
committerMichael Niedermayer <michael@niedermayer.cc>2019-09-25 17:18:37 +0200
commitf8406ab4b9f40408f0c559fa1c0aab5ecd159970 (patch)
tree218cd525ae08fc2271deb3c01c753698d7cb0ac9 /libavcodec/avcodec.h
parent402dbd4633a71e117ab81605b25eaadd12b198df (diff)
downloadffmpeg-f8406ab4b9f40408f0c559fa1c0aab5ecd159970.tar.gz
avcodec: add max_samples
Signed-off-by: Michael Niedermayer <michael@niedermayer.cc>
Diffstat (limited to 'libavcodec/avcodec.h')
-rw-r--r--libavcodec/avcodec.h8
1 files changed, 8 insertions, 0 deletions
diff --git a/libavcodec/avcodec.h b/libavcodec/avcodec.h
index c91ee4af5b..bcb931f0dd 100644
--- a/libavcodec/avcodec.h
+++ b/libavcodec/avcodec.h
@@ -3373,6 +3373,14 @@ typedef struct AVCodecContext {
* - encoding: unused
*/
int discard_damaged_percentage;
+
+ /**
+ * The number of samples per frame to maximally accept.
+ *
+ * - decoding: set by user
+ * - encoding: set by user
+ */
+ int64_t max_samples;
} AVCodecContext;
#if FF_API_CODEC_GET_SET