X-Git-Url: https://git.sesse.net/?a=blobdiff_plain;f=libavcodec%2Fsnow.h;h=f2587fd6efb49ffcc21d860f62392d5842c8e575;hb=c09419ca80f1b1de4ceb3b9c06f708914150fa45;hp=a09b6221e48eee8e6647a11500a7396314ee87f9;hpb=1eb2c0de9eeec9ff948a3460fb78027882f07d52;p=ffmpeg diff --git a/libavcodec/snow.h b/libavcodec/snow.h index a09b6221e48..f2587fd6efb 100644 --- a/libavcodec/snow.h +++ b/libavcodec/snow.h @@ -121,7 +121,6 @@ typedef struct SnowContext{ H264QpelContext h264qpel; MpegvideoEncDSPContext mpvencdsp; SnowDWTContext dwt; - const AVFrame *new_picture; AVFrame *input_picture; ///< new_picture with the internal linesizes AVFrame *current_picture; AVFrame *last_picture[MAX_REF_FRAMES]; @@ -186,6 +185,7 @@ typedef struct SnowContext{ AVMotionVector *avmv; int avmv_index; + uint64_t encoding_error[AV_NUM_DATA_POINTERS]; }SnowContext; /* Tables */ @@ -565,6 +565,8 @@ static inline int get_symbol(RangeCoder *c, uint8_t *state, int is_signed){ e= 0; while(get_rac(c, state+1 + FFMIN(e,9))){ //1..10 e++; + if (e > 31) + return AVERROR_INVALIDDATA; } a= 1;