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
path: root/src/cdf.h
diff options
context:
space:
mode:
authorJanne Grunau <janne-vlc@jannau.net>2018-12-08 17:28:48 +0300
committerJanne Grunau <janne-vlc@jannau.net>2018-12-08 19:12:21 +0300
commit52b575c82641c0098404a874379c33e215afc563 (patch)
tree0c6dec2bdca64958a2ab7620cf7c8b9582ae1a18 /src/cdf.h
parente72bec43b19f932bd1f95210fe4208e7d725abc9 (diff)
cdf: make CdfThreadContext allocation failure safe
Diffstat (limited to 'src/cdf.h')
-rw-r--r--src/cdf.h4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/cdf.h b/src/cdf.h
index a63082c..27d0f65 100644
--- a/src/cdf.h
+++ b/src/cdf.h
@@ -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);