[FFmpeg-cvslog] avcodec/snowenc: allow larger mb variances
Michael Niedermayer
git at videolan.org
Sun Mar 23 21:12:15 CET 2014
ffmpeg | branch: release/2.2 | Michael Niedermayer <michaelni at gmx.at> | Fri Mar 21 18:29:16 2014 +0100| [72a12f61ef66b9d401a9acbff62c9791f21ac045] | committer: Michael Niedermayer
avcodec/snowenc: allow larger mb variances
Fixes assertion failure
Fixes Ticket3463
Signed-off-by: Michael Niedermayer <michaelni at gmx.at>
(cherry picked from commit 2fd14f062cfc52db1529a46b53a26b06cb418f55)
Signed-off-by: Michael Niedermayer <michaelni at gmx.at>
> http://git.videolan.org/gitweb.cgi/ffmpeg.git/?a=commit;h=72a12f61ef66b9d401a9acbff62c9791f21ac045
---
libavcodec/snowenc.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/libavcodec/snowenc.c b/libavcodec/snowenc.c
index 5177285..ed331de 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;
More information about the ffmpeg-cvslog
mailing list