OSDN Git Service

Do not try to read residue if ave_mean <= 1
authorMashiat Sarker Shakkhar <shahriman_ams@yahoo.com>
Wed, 15 Feb 2012 20:11:17 +0000 (02:11 +0600)
committerMashiat Sarker Shakkhar <shahriman_ams@yahoo.com>
Wed, 15 Feb 2012 20:39:30 +0000 (02:39 +0600)
commitd1ea26f6407e8bf52da1e36a99c4d9bbb14fb1fb
tree78d523d7a3cb86e147fb15e5a29dbe5adf261327
parent59df25effd438ed3120aacc83e74676334adf560
Do not try to read residue if ave_mean <= 1

Otherwise, we end up with with log(0) or log(1). av_ceil_log2 simply
assumes the argument is non-zero and returns wrong result when it is.
(Not that there is a proper way of returning an undefined value.)
libavcodec/wmalosslessdec.c