dav1d: fix decoder failed after seek
decoder_NewPicture() can return NULL due to picture_pool_Cancel, which can happen when seek. With alloc_picture_callback, decoder_NewPicture() error leads to decoder failure.
Fix #26915 (closed)
Uses the patch !1889 (closed) and only allocate the non-pool buffer when we know it will flush.