diff options
author | Janne Grunau <janne-vlc@jannau.net> | 2018-12-08 17:28:48 +0300 |
---|---|---|
committer | Janne Grunau <janne-vlc@jannau.net> | 2018-12-08 19:12:21 +0300 |
commit | 52b575c82641c0098404a874379c33e215afc563 (patch) | |
tree | 0c6dec2bdca64958a2ab7620cf7c8b9582ae1a18 /src/cdf.h | |
parent | e72bec43b19f932bd1f95210fe4208e7d725abc9 (diff) |
cdf: make CdfThreadContext allocation failure safe
Diffstat (limited to 'src/cdf.h')
-rw-r--r-- | src/cdf.h | 4 |
1 files changed, 2 insertions, 2 deletions
@@ -131,11 +131,11 @@ typedef struct CdfThreadContext { atomic_uint *progress; } CdfThreadContext; -void dav1d_init_states(CdfThreadContext *cdf, int qidx); +int dav1d_init_states(CdfThreadContext *cdf, int qidx); void dav1d_update_tile_cdf(const Dav1dFrameHeader *hdr, CdfContext *dst, const CdfContext *src); -void dav1d_cdf_thread_alloc(CdfThreadContext *cdf, struct thread_data *t); +int dav1d_cdf_thread_alloc(CdfThreadContext *cdf, struct thread_data *t); void dav1d_cdf_thread_ref(CdfThreadContext *dst, CdfThreadContext *src); void dav1d_cdf_thread_unref(CdfThreadContext *cdf); |