shithub: dav1d

Download patch

ref: a40d3b5f0f7b0bf947bd570114924b9055d581f8
parent: 901704e8cb03a880442c9cd67c098c7977c4f35d
author: Victorien Le Couviour--Tuffet <[email protected]>
date: Wed Oct 21 09:14:26 EDT 2020

Abort frame decoding properly on reference error

This could cause a frame waiting on the current one to not be notified
on error.

Fixes #351.

--- a/src/decode.c
+++ b/src/decode.c
@@ -3102,7 +3102,7 @@
                                                           4 * (t->by + f->sb_step),
                                                           PLANE_TYPE_BLOCK))
                             {
-                                return 1;
+                                goto error;
                             }
                         dav1d_refmvs_load_tmvs(&f->rf, tile_row,
                                                0, f->bw >> 1, t->by >> 1, by_end);