diff options
author | Michael Niedermayer <michaelni@gmx.at> | 2014-03-21 18:29:16 +0100 |
---|---|---|
committer | Michael Niedermayer <michaelni@gmx.at> | 2014-03-21 18:34:54 +0100 |
commit | 2fd14f062cfc52db1529a46b53a26b06cb418f55 (patch) | |
tree | e24ac28b338d2421612067e1600d697524dfd94c /libavcodec/snowenc.c | |
parent | b4356c9cc28197bb8da626ece08d4a062b62afc8 (diff) | |
download | ffmpeg-2fd14f062cfc52db1529a46b53a26b06cb418f55.tar.gz |
avcodec/snowenc: allow larger mb variances
Fixes assertion failure
Fixes Ticket3463
Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
Diffstat (limited to 'libavcodec/snowenc.c')
-rw-r--r-- | libavcodec/snowenc.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/libavcodec/snowenc.c b/libavcodec/snowenc.c index da79e75f9f..5fea269068 100644 --- a/libavcodec/snowenc.c +++ b/libavcodec/snowenc.c @@ -1502,8 +1502,8 @@ static int ratecontrol_1pass(SnowContext *s, AVFrame *pict) } /* ugly, ratecontrol just takes a sqrt again */ - coef_sum = (uint64_t)coef_sum * coef_sum >> 16; av_assert0(coef_sum < INT_MAX); + coef_sum = (uint64_t)coef_sum * coef_sum >> 16; if(pict->pict_type == AV_PICTURE_TYPE_I){ s->m.current_picture.mb_var_sum= coef_sum; |