mirror of
https://repo.dactyloidae.xyz/Dactyloidae/UXP.git
synced 2026-10-09 00:37:32 +09:00
Update aom to commit id e87fb2378f01103d5d6e477a4ef6892dc714e614
This commit is contained in:
parent
debbee1e2a
commit
992c6637e3
429 changed files with 76047 additions and 40937 deletions
13
third_party/aom/aom_scale/generic/yv12config.c
vendored
13
third_party/aom/aom_scale/generic/yv12config.c
vendored
|
|
@ -11,9 +11,9 @@
|
|||
|
||||
#include <assert.h>
|
||||
|
||||
#include "aom_scale/yv12config.h"
|
||||
#include "aom_mem/aom_mem.h"
|
||||
#include "aom_ports/mem.h"
|
||||
#include "aom_scale/yv12config.h"
|
||||
|
||||
/****************************************************************************
|
||||
* Exports
|
||||
|
|
@ -35,7 +35,7 @@ int aom_free_frame_buffer(YV12_BUFFER_CONFIG *ybf) {
|
|||
}
|
||||
|
||||
#if CONFIG_HIGHBITDEPTH && CONFIG_GLOBAL_MOTION
|
||||
if (ybf->y_buffer_8bit) free(ybf->y_buffer_8bit);
|
||||
if (ybf->y_buffer_8bit) aom_free(ybf->y_buffer_8bit);
|
||||
#endif
|
||||
|
||||
/* buffer_alloc isn't accessed by most functions. Rather y_buffer,
|
||||
|
|
@ -168,9 +168,12 @@ int aom_realloc_frame_buffer(YV12_BUFFER_CONFIG *ybf, int width, int height,
|
|||
aom_byte_align);
|
||||
|
||||
#if CONFIG_HIGHBITDEPTH && CONFIG_GLOBAL_MOTION
|
||||
if (ybf->y_buffer_8bit) {
|
||||
free(ybf->y_buffer_8bit);
|
||||
ybf->y_buffer_8bit = NULL;
|
||||
if (use_highbitdepth) {
|
||||
if (ybf->y_buffer_8bit) aom_free(ybf->y_buffer_8bit);
|
||||
ybf->y_buffer_8bit = (uint8_t *)aom_memalign(32, (size_t)yplane_size);
|
||||
if (!ybf->y_buffer_8bit) return -1;
|
||||
} else {
|
||||
assert(!ybf->y_buffer_8bit);
|
||||
}
|
||||
#endif
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue