avcodec: Add max_pixels options

Signed-off-by: Michael Niedermayer <michael@niedermayer.cc>
This commit is contained in:
Michael Niedermayer
2016-12-10 21:40:44 +01:00
parent f542b152aa
commit 2f07830e69
6 changed files with 23 additions and 6 deletions

View File

@@ -3570,6 +3570,14 @@ typedef struct AVCodecContext {
*/
int trailing_padding;
/**
* The number of pixels per image to maximally accept.
*
* - decoding: set by user
* - encoding: set by user
*/
int64_t max_pixels;
} AVCodecContext;
AVRational av_codec_get_pkt_timebase (const AVCodecContext *avctx);