summaryrefslogtreecommitdiff
path: root/vp8/encoder/onyx_if.c
diff options
context:
space:
mode:
authorYunqing Wang <yunqingwang@google.com>2012-10-10 11:27:11 -0700
committerYunqing Wang <yunqingwang@google.com>2012-10-10 18:36:26 -0700
commitf6886c4b93283ed9ef11f4688b5af25ebe9aca6a (patch)
tree9c185b01ede1eb7503fb807a22643f870bf5f8ef /vp8/encoder/onyx_if.c
parentd21070a538f615f6e762ce37e1771a1b99362c0e (diff)
downloadlibvpx-f6886c4b93283ed9ef11f4688b5af25ebe9aca6a.tar
libvpx-f6886c4b93283ed9ef11f4688b5af25ebe9aca6a.tar.gz
libvpx-f6886c4b93283ed9ef11f4688b5af25ebe9aca6a.tar.bz2
libvpx-f6886c4b93283ed9ef11f4688b5af25ebe9aca6a.zip
post-proc: fix 0 or negative threshold handling
If the threshold(limits) <= 0, skipped filtering and copied the frame directly. Also, fixed memory allocation checking. Change-Id: If3d79d5b2bcb71b9777e6eb5cba1384585131e22
Diffstat (limited to 'vp8/encoder/onyx_if.c')
-rw-r--r--vp8/encoder/onyx_if.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/vp8/encoder/onyx_if.c b/vp8/encoder/onyx_if.c
index d81bd4323..4235662f1 100644
--- a/vp8/encoder/onyx_if.c
+++ b/vp8/encoder/onyx_if.c
@@ -3810,11 +3810,11 @@ static void encode_frame_to_data_rate
if (cm->frame_type == KEY_FRAME)
{
- vp8_de_noise(cpi->Source, cpi->Source, l , 1, 0);
+ vp8_de_noise(cm, cpi->Source, cpi->Source, l , 1, 0);
}
else
{
- vp8_de_noise(cpi->Source, cpi->Source, l , 1, 0);
+ vp8_de_noise(cm, cpi->Source, cpi->Source, l , 1, 0);
src = cpi->Source->y_buffer;