ref: 44b748f47f908187266c51667b0e2950dfb4d5a6
parent: 8e5c00fee92731a98998f935bb504d35bb4310c6
author: Ronald S. Bultje <[email protected]>
date: Sun Oct 7 17:24:15 EDT 2018
Don't read CDF before it is available Should fix CDF-related warnings in #41.
--- a/src/decode.c
+++ b/src/decode.c
@@ -2492,6 +2492,8 @@
f->lf.tile_row = 1;
dav1d_cdf_thread_wait(&f->in_cdf);
+ if (f->frame_hdr.refresh_context)
+ memcpy(f->out_cdf.cdf, f->in_cdf.cdf, sizeof(*f->in_cdf.cdf));
// parse individual tiles per tile group
int update_set = 0, tile_idx = 0;
@@ -2786,7 +2788,6 @@
}
if (f->frame_hdr.refresh_context) {
dav1d_cdf_thread_alloc(&f->out_cdf, c->n_fc > 1 ? &f->frame_thread.td : NULL);
- memcpy(f->out_cdf.cdf, f->in_cdf.cdf, sizeof(*f->in_cdf.cdf));
}
// FIXME qsort so tiles are in order (for frame threading)