diff options
author | Michael Niedermayer <michael@niedermayer.cc> | 2019-01-19 02:00:48 +0300 |
---|---|---|
committer | Michael Niedermayer <michael@niedermayer.cc> | 2019-01-28 03:09:38 +0300 |
commit | 5bcefceec8b648bc4c06c98ff7649ccdb140a0bb (patch) | |
tree | 511d9c50bef2a01d9362d6c93d8a6f9eccb25fb8 /libavcodec/avcodec.h | |
parent | b860f2218a74723e5ad731888d513a3f68be6af0 (diff) |
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.h | 8 |
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 |