projects
/
platform
/
upstream
/
libvpx.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
6e7f636
)
vp9_change_config: check vp9_alloc_loop_filter return
author
James Zern
<jzern@google.com>
Sat, 28 May 2022 22:24:37 +0000
(15:24 -0700)
committer
Jerome Jiang
<jianj@google.com>
Fri, 3 Jun 2022 14:18:32 +0000
(10:18 -0400)
Change-Id: I4cba67a5ab192d1cf1dbfb5c039a93a4952b071e
(cherry picked from commit
6549e76307631de7e37459fceb23b4eee4573620
)
vp9/encoder/vp9_encoder.c
patch
|
blob
|
history
diff --git
a/vp9/encoder/vp9_encoder.c
b/vp9/encoder/vp9_encoder.c
index
89b7c8e
..
d3f4d1e
100644
(file)
--- a/
vp9/encoder/vp9_encoder.c
+++ b/
vp9/encoder/vp9_encoder.c
@@
-2057,7
+2057,10
@@
void vp9_change_config(struct VP9_COMP *cpi, const VP9EncoderConfig *oxcf) {
cpi->external_resize = 0;
} else if (cm->mi_alloc_size == new_mi_size &&
(cpi->oxcf.width > last_w || cpi->oxcf.height > last_h)) {
- vp9_alloc_loop_filter(cm);
+ if (vp9_alloc_loop_filter(cm)) {
+ vpx_internal_error(&cm->error, VPX_CODEC_MEM_ERROR,
+ "Failed to allocate loop filter data");
+ }
}
}