summaryrefslogtreecommitdiff
path: root/vp9
diff options
context:
space:
mode:
authorJackyChen <jackychen@google.com>2015-01-21 12:59:25 -0800
committerJackyChen <jackychen@google.com>2015-01-21 12:59:25 -0800
commit25a19b48ff428e9b1345ff8495371b02d87b378a (patch)
tree0205dee781ffdcfd6fd05d29ae2abecd8f5a0d07 /vp9
parentc97d435243caeac0bfc21d34244bd3fe5e6f686f (diff)
downloadlibvpx-25a19b48ff428e9b1345ff8495371b02d87b378a.tar
libvpx-25a19b48ff428e9b1345ff8495371b02d87b378a.tar.gz
libvpx-25a19b48ff428e9b1345ff8495371b02d87b378a.tar.bz2
libvpx-25a19b48ff428e9b1345ff8495371b02d87b378a.zip
Fix compile error in Chromium building.
The comparison of address in the condition is not necessary, since they will constantly be non-null. Change-Id: Id0b0075283f5af65215d5761a8160a4cb2a15c9b
Diffstat (limited to 'vp9')
-rw-r--r--vp9/encoder/vp9_denoiser.c8
1 files changed, 2 insertions, 6 deletions
diff --git a/vp9/encoder/vp9_denoiser.c b/vp9/encoder/vp9_denoiser.c
index a7aaff0cf..7d4e26aaf 100644
--- a/vp9/encoder/vp9_denoiser.c
+++ b/vp9/encoder/vp9_denoiser.c
@@ -478,13 +478,9 @@ void vp9_denoiser_free(VP9_DENOISER *denoiser) {
return;
}
for (i = 0; i < MAX_REF_FRAMES; ++i) {
- if (&denoiser->running_avg_y[i] != NULL) {
- vp9_free_frame_buffer(&denoiser->running_avg_y[i]);
- }
- }
- if (&denoiser->mc_running_avg_y != NULL) {
- vp9_free_frame_buffer(&denoiser->mc_running_avg_y);
+ vp9_free_frame_buffer(&denoiser->running_avg_y[i]);
}
+ vp9_free_frame_buffer(&denoiser->mc_running_avg_y);
}
#ifdef OUTPUT_YUV_DENOISED