aboutsummaryrefslogtreecommitdiffstats
path: root/libavcodec/avcodec.h
diff options
context:
space:
mode:
authorMichael Niedermayer <michael@niedermayer.cc>2019-01-19 00:00:48 +0100
committerMichael Niedermayer <michael@niedermayer.cc>2019-01-28 01:09:38 +0100
commit5bcefceec8b648bc4c06c98ff7649ccdb140a0bb (patch)
tree511d9c50bef2a01d9362d6c93d8a6f9eccb25fb8 /libavcodec/avcodec.h
parentb860f2218a74723e5ad731888d513a3f68be6af0 (diff)
downloadffmpeg-5bcefceec8b648bc4c06c98ff7649ccdb140a0bb.tar.gz
avcodec: Add discard_sample_percentage
Suggested-by: BBB 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 72dc277dfd..f554c53f0e 100644
--- a/libavcodec/avcodec.h
+++ b/libavcodec/avcodec.h
@@ -3345,6 +3345,14 @@ typedef struct AVCodecContext {
* used as reference pictures).
*/
int extra_hw_frames;
+
+ /**
+ * The percentage of damaged samples to discard a frame.
+ *
+ * - decoding: set by user
+ * - encoding: unused
+ */
+ int discard_damaged_percentage;
} AVCodecContext;
#if FF_API_CODEC_GET_SET