ref: 6e796314f38bedd1c203912e1406b0056a886a68
parent: fa93b8ffd3c9fdbdd78108a7074da9a1c731619d
author: Janne Grunau <janne-vlc@jannau.net>
date: Tue Oct 30 17:04:26 EDT 2018
decode: clean up properly after frame allocation error
--- a/src/decode.c
+++ b/src/decode.c
@@ -2902,9 +2902,7 @@
f->frame_hdr.show_frame,
&c->allocator)) < 0)
{
- if (f->frame_hdr.refresh_context)
- dav1d_cdf_thread_unref(&f->out_cdf);
- return res;
+ goto error;
}
f->cur.p.poc = f->frame_hdr.frame_offset;