av1_loop_restoration_filter_frame_init: fix alloc check
aom_realloc_frame_buffer was changed to return an error code (which are
all positive values) in:
02affebbe Return error code for buffer allocation.
Bug: aomedia:3276
Change-Id: Icb8853479cb954cda194c900468f96de2670772b
(cherry picked from commit c98ccccede3c28e5432d2f7ec68a835e2b6e1bcb)
James Zern authored 1 year, 4 months ago
Wan-Teh Chang committed 1 year, 3 months ago
1116 | 1116 | if (aom_realloc_frame_buffer( |
1117 | 1117 | lr_ctxt->dst, frame_width, frame_height, seq_params->subsampling_x, |
1118 | 1118 | seq_params->subsampling_y, highbd, AOM_RESTORATION_FRAME_BORDER, |
1119 | cm->features.byte_alignment, NULL, NULL, NULL, 0, 0) < 0) | |
1119 | cm->features.byte_alignment, NULL, NULL, NULL, 0, 0) != AOM_CODEC_OK) | |
1120 | 1120 | aom_internal_error(cm->error, AOM_CODEC_MEM_ERROR, |
1121 | 1121 | "Failed to allocate restoration dst buffer"); |
1122 | 1122 |