Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/videolan/dav1d.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDerek Buitenhuis <derek.buitenhuis@gmail.com>2018-10-02 15:30:32 +0300
committerDerek Buitenhuis <derek.buitenhuis@gmail.com>2018-10-02 17:43:26 +0300
commit9e73bb8f42673674c6ddf1e87e72f2c7edaec52e (patch)
treefbaf5dedb557341de06e08703d3c57a91d25c104 /src/ref_mvs.h
parent60cc1b8b9eab94545d9a41dca25b123da924442b (diff)
ref_mvs: Check malloc in av1_init_ref_mv_common and propagate error
Signed-off-by: Derek Buitenhuis <derek.buitenhuis@gmail.com>
Diffstat (limited to 'src/ref_mvs.h')
-rw-r--r--src/ref_mvs.h24
1 files changed, 12 insertions, 12 deletions
diff --git a/src/ref_mvs.h b/src/ref_mvs.h
index 743ffb9..797434b 100644
--- a/src/ref_mvs.h
+++ b/src/ref_mvs.h
@@ -36,18 +36,18 @@ AV1_COMMON *av1_alloc_ref_mv_common(void);
void av1_free_ref_mv_common(AV1_COMMON *cm);
// call once per frame
-void av1_init_ref_mv_common(AV1_COMMON *cm,
- int w8, int h8,
- ptrdiff_t stride,
- int allow_sb128,
- refmvs *cur,
- refmvs *ref_mvs[7],
- unsigned cur_poc,
- const unsigned ref_poc[7],
- const unsigned ref_ref_poc[7][7],
- const WarpedMotionParams gmv[7],
- int allow_hp, int force_int_mv,
- int allow_ref_frame_mvs, int order_hint);
+int av1_init_ref_mv_common(AV1_COMMON *cm,
+ int w8, int h8,
+ ptrdiff_t stride,
+ int allow_sb128,
+ refmvs *cur,
+ refmvs *ref_mvs[7],
+ unsigned cur_poc,
+ const unsigned ref_poc[7],
+ const unsigned ref_ref_poc[7][7],
+ const WarpedMotionParams gmv[7],
+ int allow_hp, int force_int_mv,
+ int allow_ref_frame_mvs, int order_hint);
// call for start of each sbrow per tile
void av1_init_ref_mv_tile_row(AV1_COMMON *cm,